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

Disassembly:
push 0xffffffffffffffff
push 0x574d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x12c]
mov dword [esp + 0x14], ebp
cmp eax, ebx
je 0x48126f
cmp eax, 1
je 0x48126f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
mov esi, dword [ebp + 0x130]
mov edx, dword [esp + 0x80]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
xor edi, edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
jle 0x4811fb
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x4811f3
mov edx, dword [ecx]
push 1
call dword [edx + 8]
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x4811e2
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0042a880
mov eax, dword [ebp + 0x90]
lea ecx, [ebp + 0x90]
call dword [eax + 0x30]
mov ecx, dword [eax + 0xe0]
lea eax, [esp + 0x54]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
lea eax, [ecx + eax + 8]
lea ecx, [ebp + 0x3c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], eax
call fcn.004511e0
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x481486
lea ecx, [esp + 0x28]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.004ecb90
cmp eax, ebx
je 0x4812a6
add eax, 0xffffffc4
mov dword [esp + 0x1c], eax
jmp 0x4812aa
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x10], 1
mov eax, dword [eax + 0x64]
cmp eax, ebx
je 0x48119f
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
call dword [edx + 0x14]
test eax, eax
jne 0x48119f
mov ecx, ebp
call fcn.00481120
mov dword [esp + 0x20], eax
jmp 0x4811a3
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x3c]
lea ecx, [edx + 0x3c]
call dword [eax + 0x14]
test eax, eax
jne 0x48147c
mov esi, dword [ebp + 0x130]
push 0xac
call fcn.0054dd66
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
cmp edi, ebx
mov dword [esp + 0x6c], ebx
je 0x48130b
mov ecx, edi
call fcn.00428f30
push ebx
mov ecx, edi
mov byte [esp + 0x70], 1
mov dword [edi], 0x58a49c
call fcn.00429380
push 1
mov ecx, edi
mov dword [eax + 8], ebx
call fcn.00429380
mov dword [eax + 8], ebx
jmp 0x48130d
xor edi, edi
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x74], 0xffffffff
call fcn.004f6930
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x98], esi
add ecx, 0x3c
call fcn.004511e0
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4813e0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
lea ecx, [eax + 0x3c]
call fcn.004ecb90
cmp eax, ebx
je 0x481359
lea esi, [eax - 0x1c]
jmp 0x48135b
xor esi, esi
mov eax, dword [edi + 0x5c]
push ebx
push eax
mov ecx, edi
call fcn.00429530
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov dword [ebp + 0x3c], esi
mov eax, dword [ecx + 0x154]
cmp eax, esi
jne 0x481382
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x58]
mov eax, dword [eax]
mov ecx, ebp
push eax
mov dword [esp + 0x70], 2
call fcn.00427e80
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00552728
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
push eax
mov ecx, ebp
call fcn.00427f30
mov ecx, esi
call fcn.00449a10
and eax, 1
mov ecx, ebp
push eax
call fcn.00428050
cmp dword [esp + 0x24], ebx
jne 0x48133f
mov ebp, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov esi, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], esi
mov esi, dword [esp + 0x8c]
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x90]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x94]
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x84]
push ecx
push edi
mov ecx, eax
call dword [edx + 0x58]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
lea edx, [edi + 0x9c]
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x80]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [edx + 0xc], esi
je 0x481465
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
add eax, edx
add ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x48147c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
add eax, edx
add ecx, eax
mov dword [esp + 0x78], ecx
cmp dword [esp + 0x28], ebx
jne 0x481255
lea ecx, [ebp + 0x3c]
call fcn.00482c50
cmp dword [eax + 0x74], ebx
je 0x48171c
cmp dword [esp + 0x10], ebx
jne 0x4814a7
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
jmp 0x4814af
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
sub eax, ecx
sub eax, esi
push ebx
mov dword [ebp + 0x148], eax
add ebp, 0x90
mov ecx, ebp
call fcn.00429380
push 1
mov ecx, ebp
mov esi, eax
call fcn.00429380
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4814f8
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp eax, edx
setg cl
mov dword [esp + 0x1c], ecx
jmp 0x48150e
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
xor eax, eax
cmp edx, ecx
setg al
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], ebx
je 0x481560
mov eax, 2
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
sub esp, 0x10
mov edx, esp
and eax, ebp
push eax
mov eax, dword [ebp]
mov dword [edx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x68]
push edx
mov ecx, ebp
call dword [eax + 0x30]
mov ecx, eax
call fcn.0042f360
jmp 0x4815ae
mov dword [esi + 8], ebx
sub esp, 0x10
mov dword [edi + 8], ebx
mov ebx, esp
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
xor edx, edx
xor ebp, ebp
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ebp
call fcn.004285b0
sub esp, 0x10
xor eax, eax
mov ebx, esp
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, edi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
call fcn.004285b0
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xa4], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x78], edx
test eax, eax
mov dword [esp + 0x7c], ebx
je 0x48171c
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0xa4]
test esi, esi
jge 0x48162e
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, ebp
jne 0x4815ec
mov eax, edi
mov ecx, dword [edx + 0x148]
mov edx, eax
sub edx, dword [esp + 0x18]
add esi, ecx
sub edx, dword [esp + 0x20]
sub edx, 0x18
cmp esi, edx
jge 0x48162a
mov esi, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, ecx
xor ecx, ecx
sub eax, esi
add eax, 0xffffffe8
test eax, eax
setg cl
dec ecx
and eax, ecx
mov dword [edx + 0xa4], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x481648
mov ebx, dword [edx + 0xa4]
mov eax, dword [esp + 0x38]
add ebx, eax
mov dword [esp + 0x7c], ebx
jmp 0x481658
mov eax, dword [edx + 0xa4]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x130]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 8]
test edx, edx
jle 0x48171c
mov eax, dword [eax + 4]
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x481690
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x18]
mov ebp, eax
add ebp, ecx
add ebp, ebx
jmp 0x4816a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x78]
mov edi, eax
mov eax, dword [esp + 0x18]
add edi, ecx
add edi, eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov ebx, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x8c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebp
mov ecx, dword [esp + 0x84]
push ecx
push esi
mov ecx, eax
call dword [edx + 0x58]
mov edx, dword [esp + 0x78]
add esi, 0x9c
mov eax, dword [esp + 0x10]
mov dword [esi], edx
test eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
je 0x4816fc
mov ebx, ebp
mov dword [esp + 0x7c], ebx
jmp 0x481700
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc ecx
mov eax, dword [eax + 0x130]
mov dword [esp + 0x24], ecx
cmp ecx, dword [eax + 8]
jl 0x48166f
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x14