Function at 0x4e2810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 6
xor eax, eax
lea edi, [esi + 0x6c]
mov dword [esp + 0x20], edi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x4e2f0f
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], ecx
lea edx, [eax*4]
mov eax, dword [ebp + 0x10]
shl eax, 2
mov dword [esp + 0x40], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
xor edi, edi
mov dword [esp + 0x34], edi
cmp edi, 2
jne 0x4e28e9
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x30]
add edx, eax
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
add ecx, edx
mov byte [esp + 0x38], 0xff
push ecx
mov ecx, esi
call fcn.004e1f70
cmp byte [esp + 0x30], 0xff
je 0x4e2e7a
cmp byte [esp + 0x31], 0xe
jae 0x4e2e7a
cmp byte [esp + 0x33], 1
je 0x4e2e7a
mov eax, dword [esp + 0x14]
mov edx, ebx
and eax, 3
and edx, 3
lea ecx, [eax + esi]
lea eax, [ecx + eax*4]
add eax, edx
mov byte [eax + 0x6c], 1
mov byte [eax + 0x6d], 1
mov byte [eax + 0x71], 1
mov byte [eax + 0x72], 1
mov ecx, dword [esp + 0x14]
push ecx
push ebx
mov ecx, esi
call fcn.004e1940
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x4e2b8d
jmp 0x4e290a
mov ebx, dword [esp + 0x10]
test edi, edi
jne 0x4e2929
mov dx, word [ebx]
mov ecx, esi
push edx
call fcn.004e18c0
test al, al
jne 0x4e2949
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x10], eax
jmp 0x4e2b81
cmp edi, 1
jne 0x4e2949
mov cx, word [ebx]
push ecx
mov ecx, esi
call fcn.004e18c0
test al, al
je 0x4e2949
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x10], edx
jmp 0x4e2b81
mov ax, word [ebx]
mov ecx, esi
push eax
call fcn.004e1850
mov cx, word [ebx]
mov edi, eax
push ecx
mov ecx, esi
call fcn.004e1900
test edi, edi
je 0x4e2b76
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x10]
test eax, eax
je 0x4e2b76
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
and edx, 3
and edi, 3
lea ecx, [edi + edx*4]
lea ebx, [edx + ecx]
inc edx
lea ecx, [ebx + 1]
mov dword [esp + 0x70], ecx
lea ecx, [edi + edx*4]
add edx, ecx
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], edx
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cdq
shr ecx, 6
idiv ecx
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
shr edi, 6
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x50], edx
cdq
idiv edi
cmp bl, 0x19
mov dword [esp + 0x58], edx
jb 0x4e29f2
mov byte [esp + 0x44], 0
jmp 0x4e2a12
mov eax, dword [esp + 0x10]
mov edx, 1
mov cl, bl
mov edi, dword [eax + 4]
shl edx, cl
and edx, edi
neg edx
sbb dl, dl
and edx, 0xff
mov byte [esp + 0x44], dl
mov eax, dword [esp + 0x44]
and eax, 0xff
cmp eax, 0xff
jne 0x4e2a2a
mov ecx, dword [esp + 0x20]
mov byte [ecx + ebx], 1
fild dword [esp + 0x58]
mov ecx, dword [esi + 0x14]
mov ebx, dword [esp + 0x2c]
push ecx
fstp dword [esp + 0x50]
fild dword [esp + 0x54]
mov edx, dword [ecx]
shl eax, 0x18
fstp dword [esp + 0x60]
fild dword [esp + 0x28]
add eax, 0xffffff
fdivr dword [esp + 0x50]
fstp dword [esp]
fild dword [esp + 0x2c]
push ecx
fdivr dword [esp + 0x64]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push 0
call dword [edx + 8]
mov edx, dword [esp + 0x70]
cmp dl, 0x19
jb 0x4e2a7f
mov byte [esp + 0x48], 0
jmp 0x4e2a9c
mov eax, 1
mov cl, dl
shl eax, cl
mov ecx, dword [esp + 0x10]
and eax, dword [ecx + 4]
neg eax
sbb al, al
and eax, 0xff
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x48]
and eax, 0xff
cmp eax, 0xff
jne 0x4e2ab4
mov ecx, dword [esp + 0x20]
mov byte [ecx + edx], 1
fild dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
mov edi, dword [esp + 0x50]
push ecx
inc edi
fdivr dword [esp + 0x50]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x20]
mov edx, dword [ecx]
shl eax, 0x18
add eax, 0xffffff
fstp dword [esp]
fild dword [esp + 0x74]
push ecx
fidiv dword [esp + 0x30]
fstp dword [esp]
push eax
lea eax, [edi + 0x40]
push ebx
push eax
push 1
call dword [edx + 8]
mov edx, dword [esp + 0x74]
cmp dl, 0x19
jb 0x4e2b01
mov byte [esp + 0x54], 0
jmp 0x4e2b1e
mov eax, 1
mov cl, dl
shl eax, cl
mov ecx, dword [esp + 0x10]
and eax, dword [ecx + 4]
neg eax
sbb al, al
and eax, 0xff
mov byte [esp + 0x54], al
mov eax, dword [esp + 0x54]
and eax, 0xff
cmp eax, 0xff
jne 0x4e2b36
mov ecx, dword [esp + 0x20]
mov byte [ecx + edx], 1
mov ecx, dword [esi + 0x14]
add ebx, 0x40
shl eax, 0x18
mov edx, dword [ecx]
mov ecx, dword [esp + 0x58]
inc ecx
add eax, 0xffffff
mov dword [esp + 0x74], ecx
push ecx
fild dword [esp + 0x78]
fidiv dword [esp + 0x28]
fstp dword [esp]
fild dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x14]
fdivr dword [esp + 0x64]
fstp dword [esp]
push eax
push ebx
push edi
push 2
call dword [edx + 8]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0x10]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4e2906
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004e1940
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x4e2e76
test edi, edi
jne 0x4e2bcb
mov dx, word [ebx]
mov ecx, esi
push edx
call fcn.004e18c0
test al, al
jne 0x4e2beb
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x10], ebx
jmp 0x4e2e6e
cmp edi, 1
jne 0x4e2beb
mov ax, word [ebx]
mov ecx, esi
push eax
call fcn.004e18c0
test al, al
je 0x4e2beb
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x10], ebx
jmp 0x4e2e6e
mov cx, word [ebx]
push ecx
mov ecx, esi
call fcn.004e1850
mov dx, word [ebx]
mov ecx, esi
push edx
mov edi, eax
call fcn.004e1900
test edi, edi
je 0x4e2e63
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
je 0x4e2e63
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
and edx, 3
and edi, 3
lea ecx, [edi + edx*4]
add ecx, edx
lea ebx, [ecx + 1]
add ecx, 6
inc edx
mov dword [esp + 0x70], ecx
lea ecx, [edi + edx*4]
add edx, ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], edx
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cdq
shr ecx, 6
idiv ecx
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
shr edi, 6
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x50], edx
cdq
idiv edi
cmp bl, 0x19
mov dword [esp + 0x5c], edx
jb 0x4e2c96
mov byte [esp + 0x60], 0
jmp 0x4e2cb6
mov eax, dword [esp + 0x10]
mov edx, 1
mov cl, bl
mov edi, dword [eax + 4]
shl edx, cl
and edx, edi
neg edx
sbb dl, dl
and edx, 0xff
mov byte [esp + 0x60], dl
mov eax, dword [esp + 0x60]
and eax, 0xff
cmp eax, 0xff
jne 0x4e2cce
mov ecx, dword [esp + 0x20]
mov byte [ecx + ebx], 1
mov edx, dword [esp + 0x50]
push ecx
inc edx
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x78], edx
fild dword [esp + 0x78]
shl eax, 0x18
mov edi, dword [ebx]
add eax, 0xffffff
fstp dword [esp + 0x5c]
fild dword [esp + 0x60]
fidiv dword [esp + 0x2c]
fstp dword [esp]
fild dword [esp + 0x28]
push ecx
mov ecx, esi
fdivr dword [esp + 0x60]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x38]
push eax
push 0x40500000
push 0
call fcn.004e2480
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, ebx
push eax
push 0
call dword [edi + 8]
mov edx, dword [esp + 0x70]
cmp dl, 0x19
jb 0x4e2d36
mov byte [esp + 0x64], 0
jmp 0x4e2d53
mov eax, 1
mov cl, dl
shl eax, cl
mov ecx, dword [esp + 0x10]
and eax, dword [ecx + 4]
neg eax
sbb al, al
and eax, 0xff
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x64]
and eax, 0xff
cmp eax, 0xff
jne 0x4e2d6b
mov ecx, dword [esp + 0x20]
mov byte [ecx + edx], 1
mov edx, dword [esp + 0x5c]
push ecx
inc edx
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x78], edx
fild dword [esp + 0x78]
mov edi, dword [ebx]
shl eax, 0x18
fstp dword [esp + 0x60]
fild dword [esp + 0x2c]
add eax, 0xffffff
fdivr dword [esp + 0x60]
fstp dword [esp]
fild dword [esp + 0x28]
push ecx
mov ecx, esi
fdivr dword [esp + 0x60]
fstp dword [esp]
push eax
push 0x40500000
push 0
call fcn.004e2480
mov edx, dword [esp + 0x38]
mov ecx, esi
add eax, edx
push eax
push 0x40500000
push 0
call fcn.004e2480
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, ebx
push eax
push 1
call dword [edi + 8]
mov edx, dword [esp + 0x4c]
cmp dl, 0x19
jb 0x4e2de3
mov byte [esp + 0x68], 0
jmp 0x4e2e00
mov eax, 1
mov cl, dl
shl eax, cl
mov ecx, dword [esp + 0x10]
and eax, dword [ecx + 4]
neg eax
sbb al, al
and eax, 0xff
mov byte [esp + 0x68], al
mov eax, dword [esp + 0x68]
and eax, 0xff
cmp eax, 0xff
jne 0x4e2e18
mov ecx, dword [esp + 0x20]
mov byte [ecx + edx], 1
fild dword [esp + 0x28]
push ecx
mov ebx, dword [esi + 0x14]
shl eax, 0x18
fdivr dword [esp + 0x60]
mov edi, dword [ebx]
add eax, 0xffffff
fstp dword [esp]
fild dword [esp + 0x54]
push ecx
mov ecx, esi
fidiv dword [esp + 0x2c]
fstp dword [esp]
push eax
push 0x40500000
push 0
call fcn.004e2480
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
add eax, ecx
mov ecx, ebx
push eax
push edx
push 2
call dword [edi + 8]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x10]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4e2bac
mov ebx, dword [esp + 0x18]
inc edi
cmp edi, 3
mov dword [esp + 0x34], edi
jl 0x4e2878
mov eax, dword [esp + 0x38]
inc eax
inc ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
add eax, 0x40
mov dword [esp + 0x18], ebx
cmp eax, 0x100
mov dword [esp + 0x1c], eax
jb 0x4e2872
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
inc ebx
add eax, 0x40
inc edi
cmp eax, 0x100
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], eax
jb 0x4e2860
mov ebx, dword [esp + 0x20]
xor edi, edi
sub esi, ebx
add esi, 0x85
mov cl, byte [ebx + edi]
lea eax, [ebx + edi]
mov byte [eax + esi], cl
mov cl, byte [eax]
test cl, cl
mov ecx, dword [ebp + 8]
je 0x4e2f01
mov edx, dword [ecx]
push 0xff
push edi
call dword [edx + 0x10]
jmp 0x4e2f09
mov eax, dword [ecx]
push 0
push edi
call dword [eax + 0x10]
inc edi
cmp edi, 0x19
jb 0x4e2ee2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc