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

Disassembly:
push 0xffffffffffffffff
push 0x50a08e
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc0]
mov ebp, dword [esp + 0xc4]
mov eax, dword [edi + 8]
mov esi, dword [ebp + 8]
cmp eax, esi
jge 0x478aa7
mov esi, eax
sar esi, 1
push esi
lea ecx, [esp + 0x90]
call fcn.00476970
mov eax, dword [edi + 8]
sub eax, esi
xor ebx, ebx
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0xbc], ebx
call fcn.00476970
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0xbc], 1
call fcn.00476970
mov ecx, dword [ebp + 8]
sub ecx, esi
push ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0xbc], 2
call fcn.00476970
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 3
mov dword [esp + 0xa8], eax
call fcn.00476970
mov edx, dword [esp + 0xa4]
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0xbc], 4
call fcn.00476970
mov eax, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbc], 5
call fcn.00476970
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
sub edx, esi
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x90]
sub ecx, esi
cmp esi, ebx
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 4]
mov byte [esp + 0xb8], 6
mov dword [esp + 0x44], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0xa8], edx
jle 0x478bd8
mov dword [esp + 0xa0], esi
mov ebp, dword [eax]
mov edx, dword [esp + 0xac]
mov dword [edx], ebp
mov ebp, dword [ecx]
add edx, 4
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xa8]
mov dword [edx], ebp
add edx, 4
add eax, 4
add ecx, 4
sub dword [esp + 0xa0], 1
mov dword [esp + 0xa8], edx
jne 0x478b97
mov ebp, dword [esp + 0xc4]
cmp esi, dword [edi + 8]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xa0], esi
jge 0x478c17
jmp 0x478bf0
mov ebp, dword [eax]
mov dword [edx], ebp
mov ebp, dword [esp + 0xa0]
add ebp, 1
add edx, 4
add eax, 4
cmp ebp, dword [edi + 8]
mov dword [esp + 0xa0], ebp
jl 0x478bf0
mov ebp, dword [esp + 0xc4]
cmp esi, dword [ebp + 8]
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x7c]
mov edx, esi
jge 0x478c49
lea esp, [esp]
mov edi, dword [ecx]
mov dword [eax], edi
add edx, 1
add eax, 4
add ecx, 4
cmp edx, dword [ebp + 8]
jl 0x478c30
mov edi, dword [esp + 0x94]
cmp edi, ebx
jle 0x478c6d
lea ecx, [ecx]
mov eax, dword [esp + 0x90]
cmp dword [eax + edi*4 - 4], ebx
jne 0x478c6b
sub edi, 1
cmp edi, ebx
mov dword [esp + 0x94], edi
jg 0x478c50
cmp edi, ebx
jne 0x478c76
mov dword [esp + 0x9c], ebx
mov eax, dword [esp + 0x44]
cmp eax, ebx
jle 0x478c97
mov edi, edi
mov ecx, dword [esp + 0x40]
cmp dword [ecx + eax*4 - 4], ebx
jne 0x478c95
sub eax, 1
cmp eax, ebx
mov dword [esp + 0x44], eax
jg 0x478c80
cmp eax, ebx
jne 0x478c9d
mov dword [esp + 0x4c], ebx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.0047d1f0
add esp, 0xc
test eax, eax
je 0x478ee2
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov esi, vtable.mp_int.0
mov dword [esp + 0x28], esi
mov byte [esp + 0xb8], 5
je 0x478cf6
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x478cf6
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x58]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x50], esi
mov byte [esp + 0xb8], 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
je 0x478d3e
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x478d3e
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x60]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], esi
mov byte [esp + 0xb8], 3
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
je 0x478d89
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x478d89
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x78], esi
mov byte [esp + 0xb8], 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
je 0x478dda
mov ecx, dword [esp + 0x84]
cmp ecx, ebx
je 0x478dda
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x88]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x3c], esi
mov byte [esp + 0xb8], 1
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x7c], ebx
je 0x478e2e
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x478e2e
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x4c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x6c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x64], esi
mov byte [esp + 0xb8], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
je 0x478e75
mov ecx, dword [esp + 0x70]
cmp ecx, ebx
je 0x478e75
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x74]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x94]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x8c], esi
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], ebx
je 0x478ecf
mov ecx, dword [esp + 0x98]
cmp ecx, ebx
je 0x478ecf
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x9c]
add esp, 0xc
push eax
call fcn.004ecd7b
add esp, 4
mov eax, 0xfffffffd
jmp 0x4795a4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.0047d1f0
add esp, 0xc
test eax, eax
je 0x479121
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov esi, vtable.mp_int.0
mov byte [esp + 0xb8], 5
mov dword [esp + 0x28], esi
je 0x478f35
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x478f35
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x58]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0xb8], 4
mov dword [esp + 0x50], esi
je 0x478f80
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x478f80
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x60]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0xb8], 3
mov dword [esp + 0x14], esi
je 0x478fc8
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x478fc8
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xb8], 2
mov dword [esp + 0x78], esi
je 0x47901c
mov ecx, dword [esp + 0x84]
cmp ecx, ebx
je 0x47901c
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x88]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0xb8], 1
mov dword [esp + 0x3c], esi
je 0x47906d
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x47906d
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x4c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x6c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0xb8], bl
mov dword [esp + 0x64], esi
je 0x4790b7
mov ecx, dword [esp + 0x70]
cmp ecx, ebx
je 0x4790b7
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x74]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x94]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0x8c], esi
je 0x47910e
mov ecx, dword [esp + 0x98]
cmp ecx, ebx
je 0x47910e
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x9c]
add esp, 0xc
push eax
call fcn.004ecd7b
add esp, 4
mov eax, 0xfffffffd
jmp 0x4795a4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00477e30
add esp, 0xc
test eax, eax
jne 0x478cbf
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.00477e30
add esp, 0xc
test eax, eax
je 0x479371
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov esi, vtable.mp_int.0
mov byte [esp + 0xb8], 5
mov dword [esp + 0x28], esi
je 0x47919c
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x47919c
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x58]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0xb8], 4
mov dword [esp + 0x50], esi
je 0x4791e7
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x4791e7
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x60]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0xb8], 3
mov dword [esp + 0x14], esi
je 0x47922f
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x47922f
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xb8], 2
mov dword [esp + 0x78], esi
je 0x479283
mov ecx, dword [esp + 0x84]
cmp ecx, ebx
je 0x479283
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x88]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0xb8], 1
mov dword [esp + 0x3c], esi
je 0x4792d4
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x4792d4
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x4c]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x6c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0xb8], bl
mov dword [esp + 0x64], esi
je 0x47931e
mov ecx, dword [esp + 0x70]
cmp ecx, ebx
je 0x47931e
lea edx, [ecx*4]
push edx
push ebx
push eax
call fcn.004ed3e0
mov eax, dword [esp + 0x74]
add esp, 0xc
push eax
call fcn.004ecd7b
mov eax, dword [esp + 0x94]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0x8c], esi
je 0x478ecf
mov ecx, dword [esp + 0x98]
cmp ecx, ebx
je 0x478ecf
add ecx, ecx
add ecx, ecx
push ecx
jmp 0x478ebe
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x90]
push eax
mov ecx, edx
push ecx
call fcn.0047d1f0
add esp, 0xc
test eax, eax
jne 0x478cbf
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x38]
cmp edi, ebp
jne 0x4793bd
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0xa8], edi
call fcn.00477e30
jmp 0x479403
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00477100
add esp, 8
cmp eax, 0xffffffff
lea edx, [esp + 0x8c]
push edx
jne 0x4793ed
mov dword [esp + 0xa0], ebp
lea eax, [esp + 0x54]
lea ecx, [esp + 0x2c]
jmp 0x4793fc
mov dword [esp + 0xa0], edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.004784f0
add esp, 0xc
cmp eax, ebx
jne 0x478cbf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
push ecx
mov edx, eax
push edx
call fcn.004784f0
add esp, 0xc
test eax, eax
jne 0x479168
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00477230
add esp, 8
test eax, eax
jne 0x479168
mov edx, dword [esp + 0xa4]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00477230
add esp, 8
test eax, eax
je 0x4794e7
mov byte [esp + 0xb8], 5
lea ecx, [esp + 0x28]
call fcn.00476a60
lea ecx, [esp + 0x50]
mov byte [esp + 0xb8], 4
call fcn.00476a60
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 3
call fcn.00476a60
lea ecx, [esp + 0x78]
mov byte [esp + 0xb8], 2
call fcn.00476a60
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb8], 1
call fcn.00476a60
lea ecx, [esp + 0x64]
mov byte [esp + 0xb8], bl
call fcn.00476a60
lea ecx, [esp + 0x8c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00476a60
mov eax, 0xfffffffd
jmp 0x4795a4
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x58]
push eax
call fcn.004788a0
add esp, 0xc
test eax, eax
jne 0x479461
mov ecx, dword [esp + 0xc8]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004788a0
add esp, 0xc
test eax, eax
mov byte [esp + 0xb8], 5
lea ecx, [esp + 0x28]
jne 0x47946d
call fcn.00476a60
lea ecx, [esp + 0x50]
mov byte [esp + 0xb8], 4
call fcn.00476a60
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 3
call fcn.00476a60
lea ecx, [esp + 0x78]
mov byte [esp + 0xb8], 2
call fcn.00476a60
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb8], 1
call fcn.00476a60
lea ecx, [esp + 0x64]
mov byte [esp + 0xb8], bl
call fcn.00476a60
lea ecx, [esp + 0x8c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00476a60
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret