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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506db0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5450d0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x5450d0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], eax
lea eax, [edi + 0x98]
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
cmp dword [eax], esi
jne 0x4a6b21
lea eax, [esp + 0x2c]
call fcn.004ae1ba
push dword [ebp + 0xc]
mov dword [esp + 0x254], esi
lea esi, [edi + 0x3c]
call fcn.004a85cd
cmp dword [eax + 8], 0
mov dword [esp + 0x20], eax
je 0x4a6acf
cmp dword [eax + 0x14], 0
je 0x4a6acf
lea eax, [edi + 0x54]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x30], eax
jb 0x4a6650
mov eax, dword [eax + 4]
jmp 0x4a6653
add eax, 4
push eax
push 0x51d194
mov esi, 0xc8
lea edi, [esp + 0xb4]
call fcn.00460172
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [esp + 0x18]
push ebx
call fcn.004a4728
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x4a68ac
cmp dword [eax + 0x18], 5
jg 0x4a6afb
mov esi, dword [esp + 0x1c]
cmp dword [esi], 0
je 0x4a66ac
call fcn.0046d3db
mov ebx, eax
call fcn.004e255f
mov ebx, dword [esp + 0x24]
push 0x2d0
call fcn.004f9e98
pop ecx
mov dword [esp + 0x24], eax
push 7
mov byte [esp + 0x254], 1
pop edi
test eax, eax
je 0x4a679d
movzx eax, byte [0x551e32]
sub esp, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push dword [esp + 0x28]
push eax
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x30], esp
call fcn.004ae1ba
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004aa38d
add esp, 0x10
lea esi, [esp + 0x84]
call fcn.004aa498
sub esp, 0x10
mov byte [esp + 0x260], 2
movzx eax, byte [0x551e30]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
push dword [esp + 0x2c]
movzx eax, byte [0x551e35]
push eax
movzx eax, byte [0x551e32]
push eax
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], esp
call fcn.004ae1ba
mov ecx, dword [ebp + 0xc]
push 0x469215
push esi
call fcn.004aa2ff
add esp, 0x1c
lea esi, [esp + 0x44]
call fcn.004aa416
and dword [esp + 0x54], 0
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x254], 4
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0x194]
mov ecx, esi
push dword [ebx + 0x84]
mov dword [esp + 0x20], edi
push dword [esp + 0x34]
call fcn.004a41f2
jmp 0x4a679f
xor eax, eax
mov dword [esp + 0x250], edi
mov edi, dword [esp + 0x1c]
mov ecx, eax
call fcn.004aa1ec
mov dword [esp + 0x250], 6
test byte [esp + 0x10], 4
je 0x4a67d1
and dword [esp + 0x10], 0xfffffffb
lea esi, [esp + 0x54]
call fcn.0046da25
push 5
pop edi
mov dword [esp + 0x250], edi
test byte [esp + 0x10], 2
je 0x4a67f0
and dword [esp + 0x10], 0xfffffffd
lea esi, [esp + 0x34]
call fcn.0046da25
xor ebx, ebx
mov dword [esp + 0x250], ebx
test byte [esp + 0x10], 1
je 0x4a6809
lea esi, [esp + 0x74]
call fcn.0046da25
push ebx
call dword [0x50b708]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.0045f38b
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00460bb7
mov ecx, edi
mov esi, eax
lea edi, [esp + 0xa3]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea eax, [esp + 0x97]
push eax
lea ecx, [esp + 0x58]
movsb byte es:[edi], byte [esi]
call fcn.0044031f
push ebx
push 0xa
lea esi, [esp + 0x2c]
mov byte [esp + 0x258], 8
call fcn.00452cf9
mov esi, dword [esp + 0x24]
pop ecx
pop ecx
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x3c]
push eax
push 5
push ebx
push 1
lea eax, [esp + 0x6c]
insb byte es:[edi], dx
cmp ecx, 2
jne 0x4a6ac8
mov esi, dword [esp + 0x1c]
cmp dword [esi], 0
je 0x4a68ce
call fcn.0046d3db
mov ebx, eax
call fcn.004e255f
mov ebx, dword [esp + 0x24]
push 0x2d0
call fcn.004f9e98
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x250], 9
test eax, eax
je 0x4a69b8
sub esp, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push dword [ebp + 0xc]
push dword [esp + 0x2c]
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x30], esp
call fcn.004ae1ba
push esi
call fcn.004aa51a
add esp, 0x10
lea esi, [esp + 0x84]
call fcn.004aa5b5
sub esp, 0x10
mov byte [esp + 0x260], 0xa
movzx eax, byte [0x551e30]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
push dword [esp + 0x2c]
movzx eax, byte [0x551e35]
push eax
movzx eax, byte [0x551e32]
push eax
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], esp
call fcn.004ae1ba
mov ecx, dword [ebp + 0xc]
push 0x469776
push esi
call fcn.004aa2ff
add esp, 0x1c
lea esi, [esp + 0x44]
call fcn.004aa416
and dword [esp + 0x54], 0
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x254], 0xc
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0x194]
mov ecx, esi
push dword [ebx + 0x84]
mov dword [esp + 0x20], 0x38
push dword [esp + 0x34]
call fcn.004a41f2
jmp 0x4a69ba
xor eax, eax
mov edi, dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x250], 0xf
call fcn.004aa1ec
mov dword [esp + 0x250], 0xe
and al, 0x50
add al, byte [eax]
add byte [esi], cl
add byte [eax], al
add dh, dh
inc esp
and al, 0x10
invalid
je 0x4a69f0
and dword [esp + 0x10], 0xffffffdf
lea esi, [esp + 0x54]
call fcn.0046da25
mov dword [esp + 0x250], 0xd
test byte [esp + 0x10], 0x10
je 0x4a6a10
and dword [esp + 0x10], 0xffffffef
lea esi, [esp + 0x34]
call fcn.0046da25
xor ebx, ebx
mov dword [esp + 0x250], ebx
test byte [esp + 0x10], 8
je 0x4a6a29
lea esi, [esp + 0x74]
call fcn.0046da25
push ebx
call dword [0x50b708]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.0045f38b
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00460bb7
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x97]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x97]
push eax
lea ecx, [esp + 0x58]
movsb byte es:[edi], byte [esi]
call fcn.0044031f
push ebx
push 0xa
lea esi, [esp + 0x2c]
mov byte [esp + 0x258], 0x10
call fcn.00452cf9
mov esi, dword [esp + 0x24]
pop ecx
pop ecx
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x3c]
push eax
push 5
push ebx
push 1
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x4c]
call fcn.0046d3db
xor edx, edx
mov ecx, eax
call fcn.004e1d99
push ebx
push 1
lea ecx, [esp + 0x5c]
call fcn.0044046c
mov eax, dword [esp + 0x20]
xor ebx, ebx
push dword [ebp + 0xc]
mov esi, 0xc8
push 0x51d168
lea edi, [esp + 0x17c]
call fcn.00460172
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [esp + 0x18]
push ebx
call fcn.004a4728
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
and dword [eax + 8], 0
push dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
push ebx
call fcn.004a64dc