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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0x10], esi
mov edi, dword [esi]
mov al, byte [esi + 0x92]
mov dword [esp + 0x38], edi
mov byte [esp + 0x17], al
test dword [edi + 0x1c], 0x4000
je 0x4a5e22
mov ecx, dword [edx + 0x48]
mov ebx, 0xfff0bdc0
mov dword [esp + 0x34], ebx
test ecx, ecx
je 0x4a582c
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
mov dword [esp + 0x34], ebx
cmp dword [eax], ecx
je 0x4a582c
nop
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x4a5820
mov dword [esp + 0x34], ebx
mov eax, dword [edi + 0x10]
mov ecx, ebx
mov ebx, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
test ebx, ebx
je 0x4a5c07
jmp 0x4a5853
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
test eax, eax
je 0x4a58cf
mov ecx, dword [edx]
mov eax, dword [ebx + 8]
test ecx, ecx
jne 0x4a587e
neg eax
sbb eax, eax
jmp 0x4a5889
test eax, eax
je 0x4a588d
mov edx, eax
call fcn.0045c5e0
test eax, eax
je 0x4a58cf
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x4a5bf4
lea ecx, [ebx + 0x24]
nop dword [eax + eax]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4], 0
jge 0x4a58cb
mov eax, dword [esp + 0x2c]
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x4a58bd
cmp dword [ebp + 0x14], 0
jne 0x4a58cb
inc esi
add ecx, 8
cmp esi, dword [ebx + 0x14]
jl 0x4a58a0
jmp 0x4a5bf4
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x92], 0
mov eax, dword [ebx + 8]
push dword [esp + 0x20]
je 0x4a58ed
mov edx, eax
mov ecx, edi
call fcn.00498610
add esp, 4
jmp 0x4a58fa
push eax
xor edx, edx
mov ecx, esi
call fcn.00498770
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x4a5aaf
lea ecx, [esp + 0x18]
mov edx, eax
push ecx
lea ecx, [esp + 0x34]
push ecx
push ebx
mov ecx, esi
call fcn.004a4240
add esp, 0xc
test eax, eax
jne 0x4a5aab
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a5935
mov ecx, eax
mov dword [esp + 0x3c], eax
jmp 0x4a5944
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x4a59b9
nop dword [eax + eax]
mov eax, dword [esp + 0x2c]
movsx eax, word [eax + 0x28]
cmp dword [ecx + esi*4], eax
jne 0x4a5964
mov dword [ecx + esi*4], 0xffffffff
cmp dword [edi + 0x130], 0
je 0x4a59b3
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
test eax, eax
je 0x4a5982
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x4a5986
movzx eax, word [edx + 0x28]
push dword [esp + 0x34]
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
mov edx, dword [edx]
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x18]
call fcn.00497e10
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x4a5950
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x34]
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.00497f90
inc dword [esi + 0x28]
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a5a02
push dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov ecx, esi
push 0xffffffffffffffff
push eax
push dword [esp + 0x48]
push ebx
push dword [esp + 0x44]
push dword [esp + 0x40]
call fcn.004a44a0
add esp, 0x1c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4a5a57
mov eax, dword [esi + 0x78]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1cc]
test eax, eax
je 0x4a5a35
mov eax, dword [eax]
cmp eax, dword [ebx + 0x1c]
jne 0x4a5a2a
cmp byte [ebx + 0x19], 7
je 0x4a5a57
cmp eax, dword [ebx + 0x20]
jne 0x4a5a35
cmp byte [ebx + 0x1a], 7
je 0x4a5a57
push dword [esp + 0x1c]
mov ecx, esi
push 1
push edx
push dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ebx
push dword [esp + 0x44]
push dword [esp + 0x40]
call fcn.004a44a0
add esp, 0x1c
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4a5bf8
cmp dword [edi + 0x1d8], 0
je 0x4a5a7a
mov edx, ecx
mov ecx, edi
call fcn.00459240
jmp 0x4a5bf8
cmp ecx, dword [edi + 0x128]
jb 0x4a5a9d
cmp ecx, dword [edi + 0x12c]
jae 0x4a5a9d
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x4a5bf8
push ecx
call fcn.00459190
add esp, 4
jmp 0x4a5bf8
mov eax, dword [esp + 0x28]
cmp byte [esp + 0x17], 0
je 0x4a5e22
cmp byte [edi + 0x49], 0
jne 0x4a5e22
test eax, eax
jne 0x4a5bf8
mov esi, dword [esi + 8]
test esi, esi
jne 0x4a5aef
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x78], esi
jne 0x4a5ae8
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x4a5ae8
mov byte [ecx + 0x17], 1
call fcn.00478320
mov esi, eax
mov eax, dword [esi + 0x88]
xor edx, edx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
inc eax
add eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x4a5b9c
lea edi, [ebx + 0x24]
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
inc ecx
add eax, ecx
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4a5b49
push 0
push dword [esp + 0x34]
mov edx, 0x32
mov ecx, esi
push dword [esp + 0x24]
call fcn.004784f0
add esp, 0xc
jmp 0x4a5b7f
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x18]
add edi, 8
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [ebx + 0x14]
jl 0x4a5b14
mov ecx, dword [esi + 0x88]
mov edi, dword [esp + 0x38]
jmp 0x4a5ba0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
movzx edx, byte [ebx + 0x18]
cmp dword [eax + 0x30], ecx
jg 0x4a5bc2
push 0
push 0xffffffffffffffff
push edx
mov edx, 0x93
mov ecx, esi
call fcn.004784f0
add esp, 0xc
jmp 0x4a5bf4
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x10]
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x2c]
test ebx, ebx
jne 0x4a5850
mov ecx, dword [edx + 0x48]
mov edx, dword [edx]
add ecx, 0x38
push 0
call fcn.0045d9c0
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4a5e22
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
test eax, eax
je 0x4a5c55
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, ebx
push eax
call fcn.004a56c0
add esp, 8
test eax, eax
je 0x4a5e13
cmp byte [ebx + 0x18], 0
jne 0x4a5c74
test dword [edi + 0x1c], 0x80000
jne 0x4a5c74
cmp dword [esi + 0x78], 0
jne 0x4a5c74
cmp byte [esi + 0x14], 0
je 0x4a5e13
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push ebx
call fcn.004a4240
add esp, 0xc
test eax, eax
je 0x4a5cab
cmp byte [esp + 0x17], 0
je 0x4a5e22
cmp byte [edi + 0x49], 0
jne 0x4a5e22
jmp 0x4a5e13
push 0
push 0x58
mov ecx, edi
call fcn.004595f0
mov esi, dword [esp + 0x28]
mov edi, eax
add esp, 8
mov dword [esp + 0x20], esi
test edi, edi
je 0x4a5dce
push 0x50
lea ecx, [edi + 8]
mov dword [edi + 4], 1
push 0
push ecx
mov dword [edi], 1
call fcn.00517340
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov dword [edi + 0x38], 0xffffffff
cmp byte [ecx + 0x49], 0
je 0x4a5d07
mov edx, edi
mov edi, ecx
call fcn.0049d960
jmp 0x4a5dd2
mov eax, dword [edi]
xor edx, edx
lea esi, [eax + eax*4]
add esi, esi
call fcn.00499330
mov dword [edi + esi*8 - 0x40], eax
mov dword [edi + esi*8 - 0x44], 0
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov dword [edi + 0x18], ecx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
inc dword [ecx + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x38], eax
inc dword [ecx + 0x28]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4a5d68
push 0xffffffffffffffff
push eax
push esi
push ebx
push edx
push dword [esp + 0x40]
mov edx, edi
call fcn.004a4f00
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov edx, dword [esp + 0x18]
cmp dword [ebp + 8], 0
je 0x4a5db8
xor eax, eax
cmp dword [ebp + 0x10], eax
push 1
push dword [ebp + 8]
setne al
push esi
add eax, 0x19
push ebx
push edx
push dword [esp + 0x40]
mov al, byte [eax + ebx]
mov edx, edi
mov byte [esp + 0x3f], al
call fcn.004a4f00
add esp, 0x18
cmp byte [ebx + 0x18], 0
jne 0x4a5db8
mov al, byte [esp + 0x27]
cmp al, 9
je 0x4a5db8
cmp al, 7
je 0x4a5db8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov dword [edi + 0x10], 0
mov edx, edi
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.0049d960
jmp 0x4a5dd2
mov edi, dword [esp + 0x38]
test esi, esi
je 0x4a5e13
cmp dword [edi + 0x1d8], 0
je 0x4a5dea
mov edx, esi
mov ecx, edi
call fcn.00459240
jmp 0x4a5e13
cmp esi, dword [edi + 0x128]
jb 0x4a5e0a
cmp esi, dword [edi + 0x12c]
jae 0x4a5e0a
mov eax, dword [edi + 0x124]
mov dword [esi], eax
mov dword [edi + 0x124], esi
jmp 0x4a5e13
push esi
call fcn.00459190
add esp, 4
mov ebx, dword [ebx + 0xc]
mov esi, dword [esp + 0x10]
test ebx, ebx
jne 0x4a5c24
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret