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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4785f8
sub esp, 0x7c
mov ebx, dword [esp + 0x80]
movzx ebp, byte [ebx + 0x3d]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x477de0
mov byte [ebx + 0x3c], 1
jmp 0x477dee
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov ebx, ebp
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
cmp eax, ecx
jl 0x477e03
mov ebp, dword [ebx + 0x30]
test ebp, ebp
je 0x47804e
mov edx, dword [ebx + 0x24]
mov ebp, dword [ebx + 0x1c]
cmp edx, ecx
jb 0x4785f2
cmp eax, ecx
ja 0x4785ed
mov esi, dword [ebx + 8]
mov edi, dword [esi]
sub edx, eax
mov dword [esp + 0x4c], edx
neg edx
sar edx, 0x1f
and edx, eax
add ebp, edx
mov ebx, dword [ebx + 0x30]
mov dword [esp], ebp
sub ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
test ebx, ebx
setne al
mov byte [esp + 0xc], al
mov edx, esi
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x78], ebx
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov edx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x50], ebp
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x20]
test ecx, ecx
jne 0x478424
mov dword [esp + 0x44], eax
test eax, eax
jge 0x477f48
mov ebx, dword [0x824f04]
mov dword [esp + 0x5c], ebx
mov ecx, ebp
mov ebp, dword [0x824f00]
mov dword [esp + 0x40], ebp
mov edx, esi
mov esi, dword [esp + 0x80]
mov ebx, dword [esi + 0x30]
mov ebp, dword [esi + 0x34]
test ebx, ebx
je 0x477f11
mov dword [esp + 0x74], ebp
mov ebp, dword [0x8250e4]
cmp dword [0x8250e0], ebx
je 0x477edb
xor ebx, ebx
jmp 0x477f0d
mov dword [esp], ebx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00403610
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x44]
test bl, bl
je 0x477f41
mov ebx, dword [esp + 0x40]
mov dword [esi + 0x30], ebx
mov ebx, dword [0x84c7c0]
test ebx, ebx
jne 0x477f2b
mov ebx, dword [esp + 0x5c]
mov dword [esi + 0x34], ebx
jmp 0x477f41
lea ebx, [esi + 0x34]
mov ebp, edi
mov edi, ebx
mov eax, dword [esp + 0x5c]
call fcn.0045e710
mov eax, dword [esp + 0x44]
mov edi, ebp
xor ebx, ebx
jmp 0x478019
mov ebx, dword [esp + 0x80]
mov ecx, ebp
mov ebp, dword [ebx + 0x2c]
mov edx, esi
mov esi, dword [ebx + 0x28]
sub ebp, esi
cmp eax, ebp
jle 0x47800c
mov ebp, dword [0x824ed4]
mov dword [esp + 0x60], ebp
mov esi, dword [0x824ed0]
mov ebp, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x34]
test ebp, ebp
je 0x477fd3
mov dword [esp + 0x74], ebx
mov ebx, dword [0x8250e4]
cmp dword [0x8250e0], ebp
je 0x477f93
xor ebx, ebx
jmp 0x477fc6
mov dword [esp + 0x3c], esi
mov dword [esp], ebp
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00403610
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x44]
test bl, bl
jne 0x477fd3
mov ebx, dword [esp + 0x80]
jmp 0x478006
mov ebx, dword [esp + 0x80]
mov dword [ebx + 0x30], esi
mov ebp, dword [0x84c7c0]
test ebp, ebp
jne 0x477ff0
mov ebp, dword [esp + 0x60]
mov dword [ebx + 0x34], ebp
jmp 0x478006
lea ebp, [ebx + 0x34]
mov esi, edi
mov edi, ebp
mov eax, dword [esp + 0x60]
call fcn.0045e710
mov eax, dword [esp + 0x44]
mov edi, esi
mov esi, ebx
xor ebx, ebx
jmp 0x478019
lea ebp, [eax + esi]
mov dword [ebx + 0x28], ebp
mov esi, ebx
mov ebx, 1
test bl, bl
je 0x478418
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edx
mov ebx, dword [0x84c7c0]
test ebx, ebx
jne 0x478036
mov dword [esi + 0x10], ecx
jmp 0x478044
lea edi, [esi + 0x10]
mov edx, eax
mov eax, ecx
call fcn.0045e710
mov eax, edx
test ecx, ecx
jne 0x4783e9
mov ebx, esi
mov ebp, dword [ebx + 0x30]
test ebp, ebp
jne 0x4783cf
mov eax, dword [ebx + 0x28]
test eax, eax
jle 0x4780cd
mov ecx, dword [ebx + 0x2c]
mov ebp, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov esi, dword [ebx + 0x1c]
cmp ebp, ecx
je 0x47807a
mov edi, ebp
shr ebp, 1
cmp eax, ebp
jle 0x4780cd
mov ebp, edi
cmp edx, ecx
jb 0x4785e8
cmp ecx, eax
jb 0x4785e3
sub edx, eax
neg edx
sar edx, 0x1f
and edx, eax
sub ecx, eax
mov eax, ebx
lea ebx, [esi + edx]
cmp ebp, ecx
jg 0x4780a0
mov ecx, ebp
test edx, edx
je 0x4780bb
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045f0c0
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 0x2c]
sub edx, dword [eax + 0x28]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x28], 0
jmp 0x4780cf
mov eax, ebx
mov edx, dword [eax + 0x20]
cmp dword [eax + 0x2c], edx
jne 0x4781b2
mov ecx, dword [eax + 0xc]
cmp ecx, edx
jle 0x47834d
cmp edx, 0x3fffffff
jg 0x47834d
shl edx, 1
test edx, edx
jne 0x4780fd
mov edx, 0x1000
cmp edx, ecx
jg 0x478103
mov ecx, edx
mov dword [esp + 0x30], ecx
lea eax, [0x62f440]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00447580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x28]
mov esi, dword [ecx + 0x2c]
cmp esi, edx
ja 0x4785dc
cmp esi, ebp
jb 0x4785d3
sub esi, ebp
sub edx, ebp
neg edx
sar edx, 0x1f
and ebp, edx
lea edx, [ebx + ebp]
mov ebx, dword [esp + 0x30]
cmp ebx, esi
jg 0x47815c
mov esi, ebx
cmp eax, edx
je 0x478183
mov dword [esp + 0x70], eax
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.0045f0c0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x30]
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], ebx
mov edx, dword [0x84c7c0]
test edx, edx
jne 0x478198
mov dword [ecx + 0x1c], eax
jmp 0x4781a0
lea edi, [ecx + 0x1c]
call fcn.0045e710
mov edx, dword [ecx + 0x2c]
sub edx, dword [ecx + 0x28]
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x28], 0
jmp 0x4781b4
mov ecx, eax
xor eax, eax
jmp 0x47852d
mov eax, dword [0x8250f4]
mov ebx, dword [0x8250f0]
mov esi, dword [ebp + 0x30]
mov ecx, ebx
mov ebx, dword [ebp + 0x34]
test esi, esi
je 0x47821d
mov edx, ebx
mov ebx, dword [0x8250e4]
cmp dword [0x8250e0], esi
je 0x4781e7
xor edx, edx
jmp 0x478215
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], eax
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00403610
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x80]
mov edx, eax
mov eax, dword [esp + 0x68]
test dl, dl
je 0x477dec
mov dword [ebp + 0x30], ecx
mov ebx, dword [0x84c7c0]
test ebx, ebx
jne 0x478232
mov dword [ebp + 0x34], eax
jmp 0x477dec
lea edi, [ebp + 0x34]
call fcn.0045e710
jmp 0x477dec
mov dword [ebp + 0x38], 0
jmp 0x477dec
nop
mov ebx, dword [ebp + 0x30]
mov esi, dword [ebp + 0x34]
test ebx, ebx
je 0x47829e
mov eax, esi
mov esi, dword [0x8250e4]
cmp dword [0x8250e0], ebx
je 0x47826a
xor eax, eax
jmp 0x478296
mov dword [esp + 0x58], edx
mov dword [esp + 0x74], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00403610
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x74]
test al, al
je 0x477dec
mov dword [ebp + 0x30], edi
mov ebx, dword [0x84c7c0]
test ebx, ebx
jne 0x4782b3
mov dword [ebp + 0x34], edx
jmp 0x477dec
lea edi, [ebp + 0x34]
mov eax, edx
call fcn.0045e710
jmp 0x477dec
mov ebp, dword [esp + 0x80]
mov eax, dword [0x824edc]
mov ebx, dword [0x824ed8]
mov esi, dword [ebp + 0x30]
mov ecx, ebx
mov ebx, dword [ebp + 0x34]
test esi, esi
je 0x47832b
mov edx, ebx
mov ebx, dword [0x8250e4]
cmp dword [0x8250e0], esi
je 0x4782f5
xor edx, edx
jmp 0x478323
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], ecx
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00403610
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x80]
mov edx, eax
mov eax, dword [esp + 0x54]
test dl, dl
je 0x477dec
mov dword [ebp + 0x30], ecx
mov ebx, dword [0x84c7c0]
test ebx, ebx
jne 0x478340
mov dword [ebp + 0x34], eax
jmp 0x477dec
lea edi, [ebp + 0x34]
call fcn.0045e710
jmp 0x477dec
mov ecx, dword [0x824f14]
mov edx, dword [0x824f10]
mov ebx, dword [eax + 0x30]
mov ebp, dword [eax + 0x34]
test ebx, ebx
je 0x4783a7
mov esi, dword [0x8250e4]
cmp dword [0x8250e0], ebx
je 0x478375
xor ebx, ebx
jmp 0x4783a3
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x38], edx
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00403610
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x80]
test bl, bl
je 0x4783c3
mov dword [eax + 0x30], edx
mov edx, dword [0x84c7c0]
test edx, edx
jne 0x4783b9
mov dword [eax + 0x34], ecx
jmp 0x4783c3
lea edi, [eax + 0x34]
mov eax, ecx
call fcn.0045e710
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x478405
test eax, eax
jg 0x478405
mov eax, dword [esi + 0x38]
inc eax
mov dword [esi + 0x38], eax
cmp eax, 0x64
jle 0x47840c
jmp 0x478511
mov dword [esi + 0x38], 0
mov byte [esp + 0x84], 1
add esp, 0x7c
ret
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov dword [esp + 0x74], ebx
mov ecx, dword [0x824eec]
mov ebp, dword [esp + 0x78]
cmp dword [0x824ee8], ebp
jne 0x47849b
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403610
movzx eax, byte [esp + 0xc]
test al, al
je 0x478497
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x18], ecx
mov ecx, dword [0x84c7c0]
test ecx, ecx
jne 0x47847b
mov eax, dword [esp + 0x50]
mov dword [edx + 0x10], eax
jmp 0x478487
lea edi, [edx + 0x10]
mov eax, dword [esp + 0x50]
call fcn.0045e710
mov byte [edx + 0x3d], 1
mov byte [esp + 0x84], 1
add esp, 0x7c
ret
mov ebx, dword [esp + 0x74]
nop
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x30]
mov ebp, dword [ecx + 0x34]
test edx, edx
je 0x4784e3
mov esi, dword [0x8250e4]
cmp dword [0x8250e0], edx
je 0x4784bf
xor eax, eax
jmp 0x4784df
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00403610
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
test al, al
je 0x478505
mov dword [ecx + 0x30], ebx
mov edx, dword [0x84c7c0]
test edx, edx
jne 0x4784f9
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x34], eax
jmp 0x478505
lea edi, [ecx + 0x34]
mov eax, dword [esp + 0x64]
call fcn.0045e710
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
lea eax, [0x62f240]
mov dword [esp], eax
lea eax, [0x6c1020]
mov dword [esp + 4], eax
call fcn.00433500
mov ecx, ebp
mov eax, ebx
mov edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x24]
mov esi, dword [ecx + 0x2c]
cmp esi, edx
ja 0x4785ca
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov eax, dword [eax + 0x10]
mov dword [esp], edi
sub ebp, esi
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, esi
add ebx, ebp
mov dword [esp + 4], ebx
sub edx, esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test eax, eax
jl 0x4782c2
mov ebp, dword [esp + 0x80]
mov esi, dword [ebp + 0x20]
mov edi, ebx
mov ebx, dword [ebp + 0x2c]
sub esi, ebx
cmp eax, esi
jg 0x4782c9
add ebx, eax
mov dword [ebp + 0x2c], ebx
test ecx, ecx
jne 0x47824b
test eax, eax
jg 0x47823f
mov ebx, dword [esp + 0x34]
inc ebx
cmp ebx, 0x64
jle 0x478529
jmp 0x4781bb
mov eax, esi
mov ecx, edx
call fcn.0045e7f0
mov eax, ebp
mov ecx, esi
call fcn.0045e7f0
mov ecx, esi
call fcn.0045e7d0
call fcn.0045e7f0
call fcn.0045e7d0
call fcn.0045e7f0
call fcn.0045e7d0
nop
call fcn.0045d2d0
jmp fcn.00477db0