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

Disassembly:
sub esp, 0x234
mov eax, dword [esp + 0x23c]
push ebx
push esi
push edi
movzx edi, ax
mov esi, ecx
mov ecx, dword [esi + 4]
shr eax, 0x10
mov ebx, eax
push ebx
push edi
add ecx, 0x2c
mov dword [esp + 0x1c], esi
call fcn.00405090
test eax, eax
je 0x4a67c5
cmp word [esi + 0x274], 0xffff
je 0x4a67a2
push ebp
push 0x402b90
push 3
push 0x4f
lea eax, [esp + 0x70]
push eax
call fcn.00401080
push 0x402b90
push 3
push 0x4f
lea ecx, [esp + 0x160]
push ecx
call fcn.00401080
xor ebp, ebp
add esi, 0x38
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x20]
mov dword [esp + 0x10], esi
lea ecx, [ecx]
mov esi, dword [esp + 0x10]
xor eax, eax
lea ebx, [esp + ebp + 0x64]
mov ecx, 0x13
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [esp + ebp + 0x154]
mov ecx, 0x13
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
add esi, 0x4f
mov ecx, 0x13
lea edi, [esp + ebp + 0x154]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, 0x13
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp word [ebx], 0
mov byte [edx - 4], 0
mov dword [edx], 0
mov dword [edx + 4], 0
je 0x4a65a8
inc dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add esi, 0x9e
add ebp, 0x4f
add edx, 0xc
cmp ebp, 0xed
mov dword [esp + 0x10], esi
jl 0x4a6540
mov esi, dword [esp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x4a66cc
mov ecx, dword [0x652e04]
push esi
lea edx, [esp + 0x20]
push edx
add ecx, 0x6e4
call fcn.00405830
cmp eax, esi
je 0x4a6624
mov eax, dword [0xec0e0c]
mov ecx, dword [eax]
push 1
add ecx, 0x6deb0
push 0xff
push ecx
mov ecx, dword [0x652e04]
add ecx, 0x2394
call fcn.0046f5e0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x234
ret 8
xor edx, edx
xor eax, eax
jmp 0x4a6630
lea ecx, [esp + eax + 0x1c]
lea esi, [esp + eax + 0x40]
mov edi, ecx
mov ebp, dword [edi]
mov dword [esi], ebp
mov ebp, dword [edi + 4]
mov edi, dword [edi + 8]
mov dword [esp + eax + 0x20], ebx
mov dword [esp + eax + 0x24], ebx
add eax, 0xc
cmp eax, 0x24
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
mov byte [ecx], 0
jl 0x4a6630
cmp word [esp + 0x64], bx
je 0x4a6681
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov edx, 1
cmp word [esp + 0xb3], bx
je 0x4a66a7
lea eax, [edx + edx*2]
lea ecx, [esp + eax*4 + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
inc edx
cmp word [esp + 0x102], bx
je 0x4a66cc
lea edx, [edx + edx*2]
lea eax, [esp + edx*4 + 0x40]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov ecx, dword [0x652e04]
mov esi, dword [esp + 0x18]
mov edi, dword [esi + 0x27c]
add ecx, 0x6e4
call fcn.00457ff0
mov ecx, eax
mov eax, dword [0x652e04]
movzx edx, word [eax + 0x22cd4a]
imul edx, edx, 0x989680
add ecx, edi
cmp edx, ecx
jb 0x4a67ae
cmp dword [esi + 0x310], ebx
jne 0x4a6732
mov ecx, dword [0x652e0c]
xor eax, eax
mov ax, word [esi + 0x274]
add ecx, 4
push eax
call fcn.00422290
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x234
ret 8
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x14], ebx
jne 0x4a6780
mov edx, dword [esi + 0x278]
push edi
push edx
lea eax, [esp + 0x15c]
push eax
lea ecx, [esi + 0x2a4]
push ecx
xor ecx, ecx
mov cx, word [esi + 0x274]
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [0x652e0c]
add ecx, 4
call fcn.00427a00
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x234
ret 8
mov edx, dword [0xec0e0c]
mov ecx, dword [edx]
push 1
push 0xff
add ecx, 0x6df88
push ecx
lea ecx, [eax + 0x2394]
call fcn.0046f5e0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x234
ret 8
mov edx, dword [0xec0e0c]
mov ecx, dword [edx]
push 1
push 0xff
add ecx, 0x6def8
jmp 0x4a6795
mov ecx, dword [esi + 4]
push ebx
push edi
add ecx, 0x58
call fcn.00405090
test eax, eax
je 0x4a685c
xor eax, eax
mov ax, word [esi + 0x274]
cmp ax, 0xffff
je 0x4a680e
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x40]
test ecx, ecx
je 0x4a67a2
mov ecx, dword [0x652e0c]
push eax
add ecx, 4
call fcn.00422230
pop edi
pop esi
pop ebx
add esp, 0x234
ret 8
mov word [esi + 0x1e], 0xffff
mov ecx, dword [0x652e04]
xor esi, esi
push esi
push 2
add ecx, 0x2394
call fcn.0046f7a0
mov eax, dword [0x652e1c]
pop edi
mov dword [eax + 0x128], esi
mov dword [eax + 0x140], esi
pop esi
mov byte [eax + 0x78], 0
mov dword [eax + 0x12c], 0xffffffff
mov byte [eax + 0xc3], 0
pop ebx
add esp, 0x234
ret 8
mov ecx, dword [esi + 4]
push ebx
push edi
add ecx, 0x84
call fcn.00405090
test eax, eax
je 0x4a67a2
mov eax, dword [0x652e1c]
xor ecx, ecx
mov byte [eax + 0x78], 0
mov dword [eax + 0x128], ecx
mov dword [eax + 0x12c], 0xffffffff
mov byte [eax + 0xc3], cl
mov dword [eax + 0x140], ecx
mov eax, dword [0x652e1c]
mov byte [eax + 0x78], 0x2f
mov ecx, dword [0xec0e0c]
mov eax, dword [ecx]
mov edx, dword [0x652e1c]
add eax, 0x3d308
add edx, 0x79
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4a68c0
mov edx, dword [0x652e1c]
lea edi, [edx + 0x79]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a68d4
mov ax, word [0x4bb57c]
mov word [edi], ax
mov ecx, dword [0x652e1c]
lea edi, [ecx + 0x79]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a68f0
mov dl, byte [0x4bb578]
mov byte [edi], dl
mov edx, dword [0x652e1c]
lea eax, [edx + 0x78]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a6910
sub eax, esi
mov dword [edx + 0x128], eax
mov eax, dword [0x652e1c]
mov ecx, dword [eax + 0x128]
pop edi
dec ecx
pop esi
mov dword [eax + 0x12c], ecx
pop ebx
add esp, 0x234
ret 8