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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52eaf0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53a090]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x53a090]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [ebx + 0xbc8]
shl ecx, 4
add ecx, dword [ebx + 0xba0]
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
lea edx, [ecx + 8]
cmp eax, esi
jne 0x4a151e
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
setl al
test al, al
jne 0x4a1527
mov edx, ecx
mov eax, dword [edx + 4]
push dword [edx]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0xc30]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebx + 0xc30]
add ecx, 4
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
mov ecx, dword [ebx + 0xbc8]
shl ecx, 4
add ecx, dword [ebx + 0xba0]
mov dword [esp + 0x1c], eax
mov esi, dword [ecx + 8]
mov edi, dword [ecx]
cmp esi, edi
jne 0x4a1571
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 4]
setl al
test al, al
jne 0x4a157b
add ecx, 8
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xc30]
add eax, 4
push edi
mov ecx, dword [eax]
push eax
mov dword [esp + 0x2c], edi
call dword [ecx + 0x14]
mov ecx, dword [ebx + 0xc30]
add ecx, 4
mov esi, eax
mov edx, dword [ecx]
push esi
push ecx
call dword [edx + 0x18]
cmp edi, eax
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x17], 0
jg 0x4a15bd
cmp edi, dword [esp + 0x24]
jne 0x4a1609
mov ecx, dword [ebx + 0xc30]
add ecx, 4
lea eax, [esi + 1]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x18]
mov ecx, dword [ebx + 0xc30]
add ecx, 4
push ecx
mov edx, dword [ecx]
mov dword [esp + 0x28], eax
call dword [edx + 8]
mov edx, dword [esp + 0x24]
cmp edx, eax
jne 0x4a1604
mov eax, dword [ebx + 0xc30]
add eax, 4
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov byte [esp + 0x17], 1
cmp eax, esi
je 0x4a1609
mov byte [esp + 0x17], 0
test edi, edi
jne 0x4a1616
cmp dword [ebp + 8], edi
jl 0x4a1bea
mov eax, dword [ebx + 0xc30]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esp + 0x24]
cmp esi, eax
jne 0x4a1637
cmp dword [ebp + 8], 0
jg 0x4a1bea
cmp edi, esi
je 0x4a1bea
mov eax, dword [ebx + 0xc30]
mov dword [esp + 0x38], eax
add eax, 0x4c
mov ecx, eax
mov byte [esp + 0x3c], 1
mov dword [esp + 0x40], eax
call fcn.004c6850
cmp dword [ebp + 8], 0
mov dword [esp + 0x78], 0
jle 0x4a183f
mov ecx, dword [ebx + 0xc30]
add ecx, 4
mov eax, dword [ecx + 0x68]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
add eax, 0xfffffffe
push eax
push ecx
call dword [edx + 0x18]
cmp esi, eax
jne 0x4a183f
mov edi, dword [esp + 0x28]
lea ebx, [esi - 1]
mov edi, dword [edi + 0xc30]
test ebx, ebx
jg 0x4a16a7
xor esi, esi
jmp 0x4a1809
mov eax, dword [edi + 4]
lea esi, [edi + 4]
push esi
call dword [eax + 8]
cmp ebx, eax
jl 0x4a16c2
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, eax
jmp 0x4a1809
lea esi, [ebx - 1]
push esi
mov ecx, edi
call fcn.004bee30
test al, al
jne 0x4a1809
mov eax, dword [edi + 0x1c8]
test eax, eax
je 0x4a1807
push ebx
cmp eax, 0xfde9
jne 0x4a172d
lea ecx, [edi + 0x10]
call fcn.004c6b80
movzx eax, al
add eax, 0xffffff80
cmp eax, 0x3f
ja 0x4a1807
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call fcn.004bef80
test al, al
je 0x4a1807
mov ebx, dword [esp + 0x20]
jmp 0x4a1807
mov esi, dword [edi + 4]
lea eax, [edi + 4]
push eax
call dword [esi + 0x14]
push eax
lea eax, [edi + 4]
push eax
call dword [esi + 0x18]
mov dword [esp + 0x20], eax
mov esi, ebx
cmp ebx, eax
je 0x4a1809
cmp esi, eax
jle 0x4a1807
lea ebx, [esi - 1]
cmp ebx, dword [edi + 0x1c]
jge 0x4a1770
test ebx, ebx
jns 0x4a1768
mov byte [esp + 0x18], 0
jmp 0x4a1789
mov eax, dword [edi + 0x10]
mov al, byte [ebx + eax]
jmp 0x4a1785
cmp ebx, dword [edi + 0x18]
jl 0x4a177c
mov byte [esp + 0x18], 0
jmp 0x4a1789
mov eax, dword [edi + 0x20]
add eax, dword [edi + 0x10]
mov al, byte [eax + ebx]
mov byte [esp + 0x18], al
push dword [esp + 0x18]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push ecx
call dword [eax + 0x48]
test al, al
je 0x4a17a3
dec esi
dec ebx
cmp esi, dword [esp + 0x20]
jg 0x4a1758
mov ebx, dword [esp + 0x24]
dec ebx
cmp esi, ebx
jge 0x4a1807
lea esp, [esp]
cmp esi, dword [edi + 0x1c]
jge 0x4a17c8
test esi, esi
jns 0x4a17c0
mov byte [esp + 0x18], 0
jmp 0x4a17e1
mov eax, dword [edi + 0x10]
mov al, byte [esi + eax]
jmp 0x4a17dd
cmp esi, dword [edi + 0x18]
jl 0x4a17d4
mov byte [esp + 0x18], 0
jmp 0x4a17e1
mov eax, dword [edi + 0x20]
add eax, dword [edi + 0x10]
mov al, byte [eax + esi]
mov byte [esp + 0x18], al
push dword [esp + 0x18]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push ecx
call dword [eax + 0x48]
xor ecx, ecx
test al, al
setne cl
lea eax, [ecx + 1]
add eax, esi
cmp eax, ebx
je 0x4a1807
jg 0x4a1809
mov esi, eax
cmp esi, ebx
jl 0x4a17b0
mov esi, ebx
mov ebx, dword [esp + 0x28]
push 0
push dword [esp + 0x28]
mov ecx, ebx
push 0
push esi
call fcn.004a06b0
push 0
mov ecx, ebx
call fcn.004ac0d0
mov ecx, dword [ebx + 0xbc8]
mov eax, dword [ebx + 0xba0]
mov edi, dword [esp + 0x1c]
add ecx, ecx
mov esi, dword [eax + ecx*8]
mov dword [esp + 0x24], esi
push 0
push esi
push 0
push edi
mov ecx, ebx
call fcn.004a06b0
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov word [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
push 0
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 1
call fcn.004b1cf0
cmp esi, edi
je 0x4a18a1
setg al
test al, al
je 0x4a18a1
sub esi, edi
mov dword [esp + 0x18], esi
jmp 0x4a18a9
mov eax, edi
sub eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0xbc8]
mov eax, dword [ebx + 0xba0]
add ecx, ecx
push 0
push dword [eax + ecx*8]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.0049eb10
push dword [esp + 0x30]
mov ecx, ebx
push dword [esp + 0x30]
call fcn.0049edd0
cmp byte [esp + 0x17], 0
mov dword [esp + 0x2c], eax
je 0x4a1a71
lea ebx, [edi - 1]
mov edi, dword [esp + 0x28]
mov edi, dword [edi + 0xc30]
test ebx, ebx
jg 0x4a18fe
xor esi, esi
jmp 0x4a1a5d
mov eax, dword [edi + 4]
lea esi, [edi + 4]
push esi
call dword [eax + 8]
cmp ebx, eax
jl 0x4a1919
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, eax
jmp 0x4a1a5d
lea esi, [ebx - 1]
push esi
mov ecx, edi
call fcn.004bee30
test al, al
jne 0x4a1a5d
mov eax, dword [edi + 0x1c8]
test eax, eax
je 0x4a1a5b
push ebx
cmp eax, 0xfde9
jne 0x4a1984
lea ecx, [edi + 0x10]
call fcn.004c6b80
movzx eax, al
add eax, 0xffffff80
cmp eax, 0x3f
ja 0x4a1a5b
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004bef80
test al, al
je 0x4a1a5b
mov ebx, dword [esp + 0x1c]
jmp 0x4a1a5b
mov esi, dword [edi + 4]
lea eax, [edi + 4]
push eax
call dword [esi + 0x14]
push eax
lea eax, [edi + 4]
push eax
call dword [esi + 0x18]
mov dword [esp + 0x34], eax
mov esi, ebx
cmp ebx, eax
je 0x4a1a5d
cmp esi, eax
jle 0x4a1a5b
lea ebx, [esi - 1]
nop
cmp ebx, dword [edi + 0x1c]
jge 0x4a19c8
test ebx, ebx
jns 0x4a19c0
mov byte [esp + 0x20], 0
jmp 0x4a19e1
mov eax, dword [edi + 0x10]
mov al, byte [ebx + eax]
jmp 0x4a19dd
cmp ebx, dword [edi + 0x18]
jl 0x4a19d4
mov byte [esp + 0x20], 0
jmp 0x4a19e1
mov eax, dword [edi + 0x20]
add eax, dword [edi + 0x10]
mov al, byte [eax + ebx]
mov byte [esp + 0x20], al
push dword [esp + 0x20]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push ecx
call dword [eax + 0x48]
test al, al
je 0x4a19fb
dec esi
dec ebx
cmp esi, dword [esp + 0x34]
jg 0x4a19b0
mov ebx, dword [esp + 0x1c]
dec ebx
cmp esi, ebx
jge 0x4a1a5b
cmp esi, dword [edi + 0x1c]
jge 0x4a1a1c
test esi, esi
jns 0x4a1a14
mov byte [esp + 0x1c], 0
jmp 0x4a1a35
mov eax, dword [edi + 0x10]
mov al, byte [esi + eax]
jmp 0x4a1a31
cmp esi, dword [edi + 0x18]
jl 0x4a1a28
mov byte [esp + 0x1c], 0
jmp 0x4a1a35
mov eax, dword [edi + 0x20]
add eax, dword [edi + 0x10]
mov al, byte [eax + esi]
mov byte [esp + 0x1c], al
push dword [esp + 0x1c]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push ecx
call dword [eax + 0x48]
xor ecx, ecx
test al, al
setne cl
lea eax, [ecx + 1]
add eax, esi
cmp eax, ebx
je 0x4a1a5b
jg 0x4a1a5d
mov esi, eax
cmp esi, ebx
jl 0x4a1a04
mov esi, ebx
mov ebx, dword [esp + 0x28]
push 0
push dword [esp + 0x28]
mov ecx, ebx
push 0
push esi
call fcn.004a06b0
push 0
mov ecx, ebx
call fcn.004ac0d0
mov ecx, dword [ebx + 0xc30]
mov eax, dword [ecx + 0x1c4]
test eax, eax
jne 0x4a1a91
mov esi, 0x408b14
jmp 0x4a1aa0
mov esi, 0x43d1f4
cmp eax, 1
je 0x4a1aa0
mov esi, 0x43d1f8
mov eax, dword [ecx + 0x6c]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 8]
add edi, dword [esp + 0x2c]
dec eax
cmp edi, eax
jl 0x4a1ae5
lea eax, [ecx + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ebx, eax
test esi, esi
je 0x4a1ad1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1ac6
sub ecx, edx
jmp 0x4a1ad3
xor ecx, ecx
push ecx
push esi
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, dword [ebx + 0xc30]
call fcn.004bfd90
push edi
mov ecx, ebx
call fcn.004b1aa0
cmp dword [esp + 0x58], 0x10
mov edx, dword [esp + 0x44]
jae 0x4a1afc
lea edx, [esp + 0x44]
mov ecx, dword [ebx + 0xbc8]
mov eax, dword [ebx + 0xba0]
add ecx, ecx
mov ebx, dword [eax + ecx*8]
test edx, edx
je 0x4a1b21
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1b16
sub ecx, edi
jmp 0x4a1b23
xor ecx, ecx
push ecx
push edx
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, dword [ebx + 0xc30]
call fcn.004bfd90
cmp byte [esp + 0x17], 0
je 0x4a1b8d
mov ecx, dword [ebx + 0xbc8]
mov eax, dword [ebx + 0xba0]
add ecx, ecx
mov edi, dword [eax + ecx*8]
test esi, esi
je 0x4a1b61
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1b56
sub ecx, edx
jmp 0x4a1b63
xor ecx, ecx
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0xc30]
push esi
add eax, edi
push eax
call fcn.004bfd90
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a1b80
sub esi, ecx
add dword [esp + 0x18], esi
mov ecx, dword [ebx + 0xbc8]
mov eax, dword [ebx + 0xba0]
add ecx, ecx
push 0
mov edx, dword [eax + ecx*8]
mov eax, dword [esp + 0x1c]
add eax, edx
push eax
push 0
push edx
mov ecx, ebx
call fcn.004a06b0
cmp dword [esp + 0x58], 0x10
jb 0x4a1bc4
push dword [esp + 0x44]
call fcn.00510ee0
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov dword [esp + 0x78], 0xffffffff
call fcn.004c68c0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret 4