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

Disassembly:
sub esp, 0x50
xor eax, eax
mov dword [esp + 0x40], 0
push ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp]
push esi
xor esi, esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
cmp edx, dword [eax]
je 0x4a6fd7
push 0x177
push 0x531b88
push 0x65
push 0xbb
push 0x10
call fcn.004a11e0
add esp, 0x14
xor eax, eax
pop esi
pop ebp
add esp, 0x50
ret
push ebx
mov ebx, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x4a6ffb
test ebx, ebx
jne 0x4a6ffb
push eax
push ebp
call fcn.00499cc0
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x50
ret
xor ecx, ecx
test ebx, ebx
je 0x4a7011
mov eax, dword [esp + 0x74]
mov eax, dword [eax + ecx*4]
cmp edx, dword [eax]
jne 0x4a7069
inc ecx
cmp ecx, ebx
jb 0x4a7001
cmp dword [esp + 0x7c], esi
jne 0x4a702c
call fcn.00496410
mov dword [esp + 0x50], eax
mov dword [esp + 0x7c], eax
test eax, eax
je 0x4a75dd
test edi, edi
je 0x4a7133
push ebp
call fcn.0044d410
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
jne 0x4a708e
push 0x199
push 0x531b88
push 0x71
push 0xbb
push 0x10
call fcn.004a11e0
add esp, 0x14
xor ebx, ebx
jmp 0x4a7531
push 0x186
push 0x531b88
push 0x65
push 0xbb
push 0x10
call fcn.004a11e0
add esp, 0x14
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x50
ret
push 0x4a6e20
push fcn.004a6ed0
push 0x4a6ea0
push dword [ebp + 0x44]
call fcn.00498c60
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x4a711c
cmp dword [ebx + 8], 0
je 0x4a711c
mov ecx, dword [ebx + 0x10]
push dword [esp + 0x7c]
push dword [ecx]
push esi
push ebp
call fcn.00499580
add esp, 0x10
test eax, eax
jne 0x4a711c
mov esi, dword [ebx + 4]
push edi
mov dword [esp + 0x1c], esi
call fcn.00497ea0
xor edx, edx
mov ecx, dword [ebx + 0xc]
div esi
mov esi, dword [ebx + 8]
dec ecx
add esp, 4
lea edx, [eax + 1]
mov eax, 1
shl eax, cl
mov dword [esp + 0x44], eax
mov eax, esi
imul eax, dword [esp + 0x44]
cmp dword [ebx + 0x14], eax
je 0x4a7115
push 0x1b2
push 0x531b88
push 0x44
jmp 0x4a7053
cmp edx, esi
cmovbe esi, edx
jmp 0x4a712b
xor eax, eax
mov esi, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], esi
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], esi
lea eax, [esi + ebx]
push 0x1c1
lea esi, [eax*4]
mov dword [esp + 0x30], eax
push 0x531b88
push esi
call fcn.004a0730
push 0x1c2
push 0x531b88
push esi
mov dword [esp + 0x40], eax
call fcn.004a0730
push 0x1c3
lea ecx, [esi + 4]
mov dword [esp + 0x3c], eax
push 0x531b88
push ecx
call fcn.004a0730
push 0x1c4
mov ebx, eax
push 0x531b88
push esi
mov dword [esp + 0x40], ebx
call fcn.004a0730
add esp, 0x30
mov dword [esp + 0x24], eax
cmp dword [esp + 0x28], 0
je 0x4a7922
cmp dword [esp + 0x20], 0
je 0x4a7922
test ebx, ebx
je 0x4a7922
test eax, eax
je 0x4a7922
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x70]
mov dword [ebx], 0
xor ebx, ebx
mov dword [esp + 0x38], 0
lea edx, [eax + ecx]
mov dword [esp + 0x34], edx
test edx, edx
je 0x4a72de
mov edx, dword [esp + 0x28]
mov edi, edx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x78]
sub eax, edx
mov dword [esp + 0x48], eax
sub esi, edx
mov eax, dword [esp + 0x20]
sub eax, edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x58], eax
nop word [eax + eax]
cmp ebx, ecx
jae 0x4a7219
push dword [esi + edi]
jmp 0x4a721d
push dword [esp + 0x6c]
call fcn.00497ea0
add esp, 4
cmp eax, 0x7d0
jb 0x4a7233
mov ecx, 6
jmp 0x4a7263
cmp eax, 0x320
jb 0x4a7241
mov ecx, 5
jmp 0x4a7263
cmp eax, 0x12c
jb 0x4a724f
mov ecx, 4
jmp 0x4a7263
cmp eax, 0x46
jb 0x4a725b
mov ecx, 3
jmp 0x4a7263
cmp eax, 0x14
sbb ecx, ecx
add ecx, 2
mov dword [edi], ecx
mov eax, 1
dec ecx
shl eax, cl
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [eax + edi + 4], 0
cmp ebx, dword [esp + 0x70]
jae 0x4a7288
mov eax, dword [esi + edi]
jmp 0x4a728c
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x58]
add esi, edi
push esi
push dword [edi]
push eax
call fcn.004a6be0
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov dword [ecx + edi], eax
test eax, eax
je 0x4a752d
mov eax, dword [esi]
cmp eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x78]
cmovbe eax, dword [esp + 0x1c]
inc ebx
mov ecx, dword [esp + 0x70]
add edi, 4
mov dword [esp + 0x1c], eax
cmp ebx, dword [esp + 0x34]
jb 0x4a7210
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4a74ba
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x4a731b
cmp eax, 1
je 0x4a74ba
push 0x1e9
push 0x531b88
push 0x44
push 0xbb
push 0x10
call fcn.004a11e0
add esp, 0x14
jmp 0x4a752d
mov dword [esp + 0x48], 0
test eax, eax
je 0x4a732e
push 0x1f5
jmp 0x4a7300
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0xc]
mov dword [edx + ecx*4], eax
lea ecx, [esp + 0x48]
push ecx
push eax
push edi
call fcn.004a6be0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4a752d
mov edi, dword [esp + 0x48]
cmp edi, dword [esp + 0x1c]
ja 0x4a738f
mov esi, dword [esp + 0x70]
lea eax, [esi + 1]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [eax + esi*4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + esi*4 + 4], 0
mov eax, dword [esp + 0x20]
mov dword [eax + esi*4], edi
mov eax, dword [ebx + 0x10]
mov dword [ecx + esi*4], eax
jmp 0x4a74ba
mov eax, dword [esp + 0x18]
imul esi, eax
cmp edi, esi
jae 0x4a73bf
dec eax
xor edx, edx
add eax, edi
div dword [esp + 0x18]
cmp eax, dword [ebx + 8]
jbe 0x4a73b2
push 0x21d
jmp 0x4a7300
mov esi, dword [esp + 0x70]
lea edx, [eax + esi]
mov dword [esp + 0x2c], edx
jmp 0x4a73c7
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x10]
mov ebx, esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
cmp esi, edx
jae 0x4a74b1
mov eax, dword [esp + 0x20]
dec edx
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], ecx
lea esi, [eax + esi*4]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
cmp ebx, edx
jae 0x4a7414
mov dword [esi], eax
cmp edi, eax
jb 0x4a749f
sub edi, eax
jmp 0x4a7416
mov dword [esi], edi
push 0x239
mov dword [ecx + esi + 4], 0
push 0x531b88
push dword [esi]
call fcn.004a0730
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + esi], eax
test eax, eax
je 0x4a75e9
push dword [esi]
push dword [esp + 0x44]
push eax
call fcn.004d1780
mov eax, dword [esi]
add esp, 0xc
cmp eax, dword [esp + 0x1c]
cmovbe eax, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
cmp dword [eax], 0
je 0x4a7509
mov ecx, dword [esp + 0x58]
inc ebx
mov dword [ecx + esi], eax
add esi, 4
mov ecx, dword [esp + 0x44]
lea eax, [eax + ecx*4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x40], eax
cmp ebx, dword [esp + 0x2c]
jae 0x4a74a9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
jmp 0x4a7402
push 0x22e
jmp 0x4a7300
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
push ecx
call fcn.004a06f0
add esp, 4
mov ebx, dword [esp + 0x38]
push 0x256
push 0x531b88
lea eax, [ebx*4 + 4]
push eax
call fcn.004a0730
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4a75fa
push 0x259
push 0x531b88
push 0x41
push 0xbb
push 0x10
call fcn.004a11e0
mov ebx, dword [esp + 0x24]
add esp, 0x14
xor esi, esi
jmp 0x4a7535
push 0x246
push 0x531b88
push 0x44
push 0xbb
push 0x10
call fcn.004a11e0
push dword [esp + 0x44]
call fcn.004a06f0
add esp, 0x18
mov ebx, dword [esp + 0x10]
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4a7546
push eax
call fcn.004962d0
add esp, 4
test esi, esi
je 0x4a7553
push esi
call fcn.004996d0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a7564
push eax
call fcn.004a06f0
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a7575
push eax
call fcn.004a06f0
add esp, 4
test ebx, ebx
je 0x4a759d
mov eax, dword [ebx]
mov esi, ebx
test eax, eax
je 0x4a7594
push eax
call fcn.004a06f0
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x4a7581
push ebx
call fcn.004a06f0
add esp, 4
test edi, edi
je 0x4a75cc
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x4a75c3
nop dword [eax]
push eax
call fcn.00499540
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x4a75b0
push edi
call fcn.004a06f0
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a75dd
push eax
call fcn.004a06f0
add esp, 4
mov eax, dword [esp + 0x54]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x50
ret
push 0x23c
push 0x531b88
push 0x41
jmp 0x4a7515
lea eax, [edi + ebx*4]
mov esi, edi
xor edx, edx
mov dword [eax], 0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], edx
test edi, edi
je 0x4a7679
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
sub eax, ebx
mov dword [esp + 0x5c], eax
mov dword [eax + ebx], esi
xor edi, edi
mov ecx, dword [ebx]
mov eax, 1
dec ecx
shl eax, cl
test eax, eax
je 0x4a7661
push ebp
call fcn.004999e0
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4a794f
mov ecx, dword [ebx]
mov eax, 1
dec ecx
inc edi
shl eax, cl
add esi, 4
cmp edi, eax
jb 0x4a7638
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
inc edx
mov eax, dword [esp + 0x5c]
add ebx, 4
mov dword [esp + 0x48], edx
cmp edx, edi
jb 0x4a7625
mov eax, dword [esp + 0x58]
cmp esi, eax
je 0x4a76a7
push 0x26c
push 0x531b88
push 0x44
push 0xbb
push 0x10
call fcn.004a11e0
mov ebx, dword [esp + 0x24]
add esp, 0x14
mov edi, dword [esp + 0x14]
xor esi, esi
jmp 0x4a7535
push ebp
call fcn.004999e0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a795e
xor ebx, ebx
test edi, edi
je 0x4a778c
mov ecx, dword [esp + 0x24]
mov edi, ecx
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x28]
sub eax, ecx
sub esi, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x30], esi
cmp ebx, dword [esp + 0x70]
jae 0x4a76eb
push dword [eax + edi]
jmp 0x4a76ef
push dword [esp + 0x4c]
mov eax, dword [edi]
push dword [eax]
call fcn.004995f0
add esp, 8
test eax, eax
je 0x4a7911
cmp dword [esi + edi], 1
jbe 0x4a777a
mov eax, dword [edi]
push dword [esp + 0x7c]
mov esi, dword [esp + 0x1c]
push dword [eax]
push esi
push ebp
call fcn.00499660
add esp, 0x10
test eax, eax
je 0x4a7942
mov ecx, dword [esp + 0x30]
mov esi, 1
mov eax, esi
mov ecx, dword [ecx + edi]
dec ecx
shl eax, cl
cmp eax, esi
jbe 0x4a7776
nop dword [eax]
push dword [esp + 0x7c]
mov eax, dword [edi]
push dword [esp + 0x1c]
push dword [eax + esi*4 - 4]
push dword [eax + esi*4]
push ebp
call fcn.004994c0
add esp, 0x14
test eax, eax
je 0x4a7911
mov eax, dword [esp + 0x30]
inc esi
mov ecx, dword [eax + edi]
mov eax, 1
dec ecx
shl eax, cl
cmp esi, eax
jb 0x4a7740
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
inc ebx
add edi, 4
cmp ebx, dword [esp + 0x34]
jb 0x4a76e0
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x14]
push edi
push eax
push dword [esp + 0x40]
push ebp
call fcn.00499d20
add esp, 0x10
test eax, eax
je 0x4a7911
mov ecx, dword [esp + 0x1c]
mov ebx, 1
sub ecx, ebx
mov dword [esp + 0x1c], ecx
js 0x4a78f8
jmp 0x4a77c6
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
test ebx, ebx
jne 0x4a77e6
push edi
push esi
push esi
push ebp
call fcn.00499660
add esp, 0x10
test eax, eax
je 0x4a7911
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
cmp dword [esp + 0x2c], ebp
jbe 0x4a78cd
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
sub edx, eax
mov edi, dword [esp + 0x24]
sub eax, edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], eax
nop word [eax + eax]
add eax, edi
cmp dword [eax + edx], ecx
jbe 0x4a78b7
mov eax, dword [eax]
movsx ecx, byte [ecx + eax]
test ecx, ecx
je 0x4a78b3
mov eax, ecx
mov esi, ecx
shr eax, 0x1f
neg esi
test eax, eax
cmove esi, ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
je 0x4a786e
test ebx, ebx
jne 0x4a7863
push dword [esp + 0x7c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.004997e0
add esp, 0xc
test eax, eax
je 0x4a7911
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
sar esi, 1
test ebx, ebx
je 0x4a7892
push dword [eax + esi*4]
mov esi, dword [esp + 0x6c]
push esi
call fcn.004995f0
add esp, 8
test eax, eax
je 0x4a7911
xor ebx, ebx
jmp 0x4a78af
push dword [esp + 0x7c]
push dword [eax + esi*4]
mov esi, dword [esp + 0x70]
push esi
push esi
push dword [esp + 0x74]
call fcn.004994c0
add esp, 0x14
test eax, eax
je 0x4a7911
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
inc ebp
add edi, 4
cmp ebp, dword [esp + 0x2c]
jb 0x4a7810
mov edi, dword [esp + 0x7c]
sub ecx, 1
mov dword [esp + 0x1c], ecx
jns 0x4a77c2
test ebx, ebx
jne 0x4a78f4
cmp dword [esp + 0x3c], ebx
je 0x4a7909
push edi
push esi
push dword [esp + 0x6c]
call fcn.004997e0
add esp, 0xc
jmp 0x4a7905
mov ebp, dword [esp + 0x64]
push dword [esp + 0x68]
push ebp
call fcn.00499cc0
add esp, 8
test eax, eax
je 0x4a7911
mov dword [esp + 0x54], 1
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x4a7535
push 0x1c8
push 0x531b88
push 0x41
push 0xbb
push 0x10
call fcn.004a11e0
add esp, 0x14
jmp 0x4a7531
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x4a7535
mov edi, dword [esp + 0x14]
xor esi, esi
mov ebx, dword [esp + 0x10]
jmp 0x4a7535
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x4a7535