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

Disassembly:
push 0xffffffffffffffff
push 0x4b0ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x478a49
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x30], eax
test eax, eax
je 0x478a49
or edx, 0xffffffff
xor edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x17], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], edi
test eax, eax
jbe 0x4789f2
mov ecx, dword [ecx]
mov eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
jmp 0x47854b
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x478556
mov ecx, dword [eax]
mov edi, dword [eax + 4]
jmp 0x47855d
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x38], ecx
add ecx, dword [esp + 0x60]
mov eax, 0
adc eax, dword [esp + 0x64]
mov ebx, esi
cmp eax, ebx
jl 0x478691
jg 0x47858a
mov ebx, edx
cmp ecx, ebx
jb 0x478691
mov ebx, edx
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x44], esi
xor esi, esi
add edx, ebx
adc esi, dword [esp + 0x44]
cmp eax, esi
jg 0x478691
jl 0x4785ad
cmp ecx, edx
jae 0x478691
mov edx, dword [esp + 0x6c]
push edx
push edi
push eax
push ecx
mov ecx, ebp
call fcn.00475a30
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 4]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x5c]
imul edx, esi
add edx, edi
mov ecx, dword [ecx + edx*4 + 0x10]
lea edi, [esp + 0x1a]
cmp ebx, 2
je 0x47866d
cmp ecx, 0xfff00000
jb 0x478635
lea edx, [ecx + 0x100000]
shr edx, 0x10
cmp edx, 0xff
je 0x478635
movzx ecx, cx
cmp ecx, 0xfff0
jne 0x47860a
lea ecx, [esi + 0xfff0]
mov esi, dword [esp + 0x68]
cmp dword [esi + 4], ecx
jne 0x478667
test edx, edx
jl 0x478635
cmp edx, 1
jle 0x478648
cmp edx, 2
jne 0x478635
cmp dword [esp + 0x20], 0xffffffff
je 0x47862d
mov byte [esp + 0x18], 1
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
test ebx, ebx
jne 0x478683
cmp eax, 3
je 0x478643
cmp eax, 4
jne 0x47869a
mov byte [edi], 1
jmp 0x47869a
cmp dword [esp + 0x1c], 0xffffffff
je 0x478654
mov byte [esp + 0x18], 1
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
cmp edx, 1
jne 0x478635
mov byte [esp + 0x17], dl
jmp 0x478635
lea edi, [esp + 0x19]
jmp 0x478635
cmp dword [esp + 0x1c], 0xffffffff
jne 0x478688
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x17], 1
jmp 0x478688
cmp ebx, 1
jne 0x47869a
test eax, eax
jne 0x47869a
mov byte [edi], 1
jmp 0x47869a
mov ebx, dword [esp + 0x5c]
mov byte [esp + 0x1b], 1
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc edi
add eax, 8
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0x30]
jb 0x478547
cmp byte [esp + 0x17], 0
je 0x4786c6
cmp byte [esp + 0x19], 0
jne 0x4786d1
cmp byte [esp + 0x1a], 0
je 0x4789f2
cmp byte [esp + 0x18], 0
jne 0x478a49
cmp byte [esp + 0x1b], 0
jne 0x478a49
xor esi, esi
cmp ebx, esi
jne 0x478830
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x68]
cmp edi, 0xffffffff
je 0x478793
push edi
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00475160
mov ebx, dword [esp + 0x6c]
push ebx
push edi
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.00475160
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push edx
xor edx, edx
add ecx, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
push edx
push ecx
mov ecx, ebp
call fcn.00475a30
cmp eax, 4
je 0x478797
push edi
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00475160
push 4
push ebx
push edi
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.00475160
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
push edx
xor edx, edx
add ecx, dword [esp + 0x6c]
adc edx, dword [esp + 0x70]
push edx
push ecx
mov ecx, ebp
call fcn.00475a90
mov dword [esp + 0x5c], 1
jmp 0x478797
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x20]
cmp edi, 0xffffffff
je 0x478827
push edi
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00475160
push ebx
push edi
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.00475160
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push edx
xor edx, edx
add ecx, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
push edx
push ecx
mov ecx, ebp
call fcn.00475a30
cmp eax, 4
je 0x478827
push edi
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00475160
push 4
push ebx
push edi
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.00475160
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
push edx
xor edx, edx
add ecx, dword [esp + 0x6c]
adc edx, dword [esp + 0x70]
push edx
push ecx
mov ecx, ebp
call fcn.00475a90
inc dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
jmp 0x478a4c
mov eax, dword [ebp + 4]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x44]
call fcn.00476ab0
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x24], esi
lea esp, [esp]
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], 0
test ecx, ecx
jbe 0x4789b7
jmp 0x478870
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
cmp esi, 0xffffffff
je 0x478887
lea eax, [ebx + esi + 1]
xor edx, edx
div ecx
mov ebx, edx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4788a4
cmp ebx, dword [esp + 0x1c]
je 0x47899f
cmp ebx, dword [esp + 0x20]
jne 0x4788bc
jmp 0x47899f
cmp eax, 1
jne 0x4788af
cmp ebx, dword [esp + 0x1c]
jmp 0x4788b6
cmp eax, 2
jne 0x4788bc
cmp ebx, esi
jne 0x47899f
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x4788cf
mov esi, dword [eax + ebx*8]
mov edi, dword [eax + ebx*8 + 4]
jmp 0x4788d6
mov eax, edx
mov esi, dword [eax + 8]
mov edi, ebx
cmp dword [esp + 0x24], 0
jne 0x478918
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 4]
imul ecx, esi
add ecx, edi
mov eax, dword [eax + ecx*4 + 0x10]
cmp eax, 0xffefff00
je 0x47899f
cmp byte [esp + 0x17], 0
jne 0x478918
cmp eax, 0xfff00000
jb 0x478918
add eax, 0x100000
shr eax, 0x10
cmp eax, 0xff
jne 0x47899f
cmp dword [ebp + 8], 0
mov dword [esp + 0x2c], 0
je 0x478959
xor eax, eax
mov edx, esi
add edx, dword [esp + 0x60]
push edi
adc eax, dword [esp + 0x68]
mov ecx, ebp
push eax
push edx
call fcn.004759d0
mov ecx, eax
test ecx, ecx
je 0x4789e1
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0xc]
imul eax, dword [esp + 0x6c]
add ecx, eax
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00417dd0
mov edx, dword [esp + 0x6c]
xor eax, eax
add esi, dword [esp + 0x60]
push edx
adc eax, dword [esp + 0x68]
push edi
push eax
push esi
mov ecx, ebp
call fcn.00475a30
test eax, eax
jne 0x47899f
mov eax, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, 2
ja 0x4789b7
mov ecx, dword [esp + 0x44]
dec ecx
mov dword [esp + eax*4 + 0x2c], ecx
mov dword [esp + eax*4 + 0x34], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
mov ecx, dword [edx + 0xc]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x478870
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 3
jb 0x478850
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x4789e1
cmp edi, 2
jbe 0x4789f6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x478a49
push eax
jmp 0x478a41
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4789f2
push eax
call fcn.0049ba00
add esp, 4
xor eax, eax
jmp 0x478a4c
mov esi, dword [esp + 0x40]
cmp edi, 1
jne 0x478ada
cmp dword [esp + 0x1c], 0xffffffff
je 0x4789d6
mov eax, dword [ebp + 8]
test eax, eax
je 0x478a94
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x38], ecx
jne 0x478a62
cmp ecx, 0xffffffff
je 0x478a62
xor edx, edx
div dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x48]
push eax
push esi
call fcn.00493060
add esp, 0xc
test al, al
jne 0x478a94
test esi, esi
je 0x478a49
push esi
call fcn.0049ba00
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x14
mov edx, dword [esp + 0x30]
mov edi, dword [esi + edx*4]
xor eax, eax
cmp ecx, 0xffffffff
mov ecx, dword [esp + 0x44]
setne al
sub ecx, eax
mov eax, dword [esi + ecx*4 - 4]
mov dword [esi + ecx*4 - 4], edi
mov dword [esi + edx*4], eax
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0xc]
push eax
push ecx
push esi
call fcn.00492ff0
jmp 0x478a35
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
call fcn.00475160
mov ecx, dword [esp + 0x38]
push 2
mov edi, eax
mov eax, dword [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
call fcn.00475160
mov ecx, dword [edi]
mov eax, dword [eax + 4]
xor edx, edx
add ecx, dword [esp + 0x68]
push eax
adc edx, dword [esp + 0x70]
push edx
push ecx
jmp 0x478bc5
cmp edi, 2
jne 0x478bd0
mov edx, dword [esp + 0x1c]
cmp edx, 0xffffffff
je 0x4789d6
mov ebx, dword [esp + 0x20]
cmp ebx, 0xffffffff
je 0x4789d6
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x478b40
cmp ecx, edx
jne 0x478b14
cmp edi, ebx
je 0x478b24
cmp edi, edx
jne 0x478be4
cmp ecx, ebx
jne 0x478be4
xor edx, edx
div dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x48]
push eax
push esi
call fcn.00493060
add esp, 0xc
test al, al
je 0x478a3c
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.00475160
mov edx, dword [esp + 0x6c]
push 2
mov ebx, eax
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.00475160
mov edx, dword [eax + 4]
mov eax, dword [ebx]
xor ecx, ecx
add eax, dword [esp + 0x68]
push edx
adc ecx, dword [esp + 0x70]
push ecx
push eax
mov ecx, ebp
call fcn.00475a90
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.00475160
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x3c]
push 2
push ecx
mov ebx, eax
push edx
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.00475160
mov ecx, dword [eax + 4]
mov edx, dword [ebx]
xor eax, eax
add edx, dword [esp + 0x68]
push ecx
adc eax, dword [esp + 0x70]
push eax
push edx
mov ecx, ebp
call fcn.00475a90
mov edi, dword [esp + 0x5c]
test esi, esi
je 0x478bdd
push esi
call fcn.0049ba00
add esp, 4
mov eax, edi
jmp 0x478a4c
cmp ecx, edx
je 0x478c87
cmp edi, edx
je 0x478c8d
cmp ecx, ebx
je 0x478c2b
cmp edi, ebx
je 0x478c31
xor edx, edx
div dword [ebp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
push esi
call fcn.00493540
mov ecx, eax
call fcn.004932c0
test al, al
jne 0x478b40
jmp 0x478a3c
mov ebx, dword [esp + 0x34]
jmp 0x478c35
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov eax, dword [esi + edi*4 - 8]
mov ecx, dword [esi + ebx*4]
mov dword [esi + edi*4 - 8], ecx
mov dword [esp + 0x30], eax
mov dword [esi + ebx*4], eax
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0xc]
lea edx, [edi - 1]
push eax
push edx
push esi
call fcn.00492ff0
add esp, 0xc
test al, al
je 0x478a3c
mov eax, dword [esi + edi*4 - 8]
mov ecx, dword [esp + 0x30]
mov dword [esi + ebx*4], eax
mov dword [esi + edi*4 - 8], ecx
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0xc]
push eax
push edi
jmp 0x478b2f
mov ecx, dword [esp + 0x34]
jmp 0x478c91
mov ecx, dword [esp + 0x30]
xor edx, edx
div dword [ebp + 0xc]
mov edx, dword [esp + 0x44]
push ecx
push eax
push edx
push esi
call fcn.00493540
mov ecx, eax
call fcn.00493460
jmp 0x478b38