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

Disassembly:
sub esp, 0x240
mov eax, dword [esp + 0x244]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x248]
push ebx
push esi
xor esi, esi
lea ebx, [eax + ecx]
lea edx, [esp + 0x188]
cmp ecx, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], 8
mov dword [esp + 0x28], esi
mov dword [esp + 8], edx
je 0x478794
lea ecx, [esp + 0x88]
push ebp
mov dword [esp + 0x4c], ecx
mov ecx, 0x100
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], ecx
mov ecx, ebx
push edi
sub ecx, eax
lea edx, [esp + 0x90]
push ecx
push 0x3c
push eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
call fcn.005926c0
add esp, 0xc
cmp eax, esi
je 0x47874e
mov dword [esp + 0x70], eax
inc eax
mov ebp, eax
mov dword [esp + 0x74], eax
cmp ebp, ebx
jae 0x47874e
mov al, byte [ebp]
cmp al, 0x21
jne 0x478234
test byte [esp + 0x260], 1
jne 0x47821a
lea edx, [ebx + 3]
cmp ebp, edx
jae 0x47821a
cmp byte [ebp + 1], 0x2d
jne 0x47821a
cmp byte [ebp + 2], 0x2d
jne 0x47821a
mov ecx, dword [esp + 0x18]
lea eax, [ebp + 3]
push ebx
push eax
call fcn.004787a0
test eax, eax
je 0x478227
jmp 0x478225
mov ecx, dword [esp + 0x18]
push ebx
push ebp
call fcn.00478810
mov ebp, eax
cmp ebp, ebx
je 0x47874e
jmp 0x478728
cmp al, 0x2f
jne 0x478249
inc ebp
mov dword [esp + 0x28], 1
cmp ebp, ebx
jae 0x47874e
mov al, byte [ebp]
mov dword [esp + 0x14], ebp
cmp al, 0x20
jle 0x478728
cmp al, 0x7f
jge 0x478278
cmp al, 0x3d
je 0x478278
cmp al, 0x3e
je 0x478278
cmp al, 0x2f
je 0x478278
inc ebp
cmp ebp, ebx
jae 0x47874e
mov al, byte [ebp]
cmp al, 0x20
jg 0x478258
cmp ebp, dword [esp + 0x14]
je 0x478728
movsx ecx, byte [ebp]
push ecx
mov edi, ebp
call fcn.00591de1
add esp, 4
test eax, eax
je 0x4782af
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx edx, byte [ebp]
push edx
call fcn.00591de1
add esp, 4
test eax, eax
jne 0x478295
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4782c1
cmp byte [ebp], 0x3e
jne 0x47868d
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push edi
push eax
mov ecx, esi
call fcn.00478f70
test eax, eax
jne 0x4782e0
mov dword [esp + 0x38], 1
jmp 0x4782fc
mov ecx, dword [esp + 0x14]
push 1
push edi
lea edx, [esp + 0x58]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.004789f0
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], 1
jmp 0x478312
mov ebx, dword [esp + 0x40]
movsx eax, byte [ebp]
push eax
mov dword [esp + 0x20], 1
call fcn.00591de1
add esp, 4
test eax, eax
je 0x478345
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx ecx, byte [ebp]
push ecx
call fcn.00591de1
add esp, 4
test eax, eax
jne 0x47832b
mov al, byte [ebp]
cmp al, 0x2f
jne 0x47838b
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx edx, byte [ebp]
push edx
call fcn.00591de1
add esp, 4
test eax, eax
je 0x478380
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx eax, byte [ebp]
push eax
call fcn.00591de1
add esp, 4
test eax, eax
jne 0x478366
mov al, byte [ebp]
cmp al, 0x3e
jne 0x47868d
cmp al, 0x3e
je 0x478696
mov ecx, ebp
cmp al, 0x20
mov dword [esp + 0x3c], ecx
jle 0x4783bd
cmp al, 0x7f
jge 0x4783bd
cmp al, 0x3d
je 0x4783bd
cmp al, 0x3e
je 0x4783bd
cmp al, 0x2f
je 0x4783bd
inc ebp
cmp ebp, ebx
jae 0x47874e
mov al, byte [ebp]
cmp al, 0x20
jg 0x47839d
cmp ecx, ebp
mov dword [esp + 0x48], ebp
je 0x47868d
movsx ecx, byte [ebp]
push ecx
call fcn.00591de1
add esp, 4
test eax, eax
je 0x4783f4
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx edx, byte [ebp]
push edx
call fcn.00591de1
add esp, 4
test eax, eax
jne 0x4783da
mov al, byte [ebp]
cmp al, 0x20
jle 0x47840f
cmp al, 0x7f
jge 0x47840f
cmp al, 0x3d
je 0x47840f
cmp al, 0x3e
je 0x47840f
cmp al, 0x2f
jne 0x478539
cmp al, 0x2f
je 0x478539
cmp al, 0x3e
je 0x478539
cmp al, 0x3d
jne 0x47868d
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx eax, byte [ebp]
push eax
call fcn.00591de1
add esp, 4
test eax, eax
je 0x47845b
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx ecx, byte [ebp]
push ecx
call fcn.00591de1
add esp, 4
test eax, eax
jne 0x478441
mov al, byte [ebp]
cmp al, 0x22
je 0x4784bd
cmp al, 0x27
je 0x4784bd
movsx edx, al
mov edi, ebp
push edx
mov dword [esp + 0x50], edi
call fcn.00591de1
add esp, 4
test eax, eax
jne 0x47849c
cmp byte [ebp], 0x3e
je 0x47849c
inc ebp
cmp ebp, ebx
jae 0x47874e
movsx eax, byte [ebp]
push eax
call fcn.00591de1
add esp, 4
test eax, eax
je 0x47847c
cmp edi, ebp
mov dword [esp + 0x2c], ebp
je 0x47868d
mov esi, edi
mov ebx, ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], 2
jmp 0x47854f
xor ecx, ecx
mov esi, ebp
inc ebp
mov dl, al
cmp ebp, ebx
mov dword [esp + 0x44], esi
jae 0x47874e
mov al, byte [ebp]
mov edi, ebp
cmp al, dl
mov dword [esp + 0x4c], edi
je 0x478502
test ecx, ecx
jne 0x4784ee
cmp al, 0xa
jne 0x4784f2
mov ebp, edi
mov ecx, 1
jmp 0x4784fb
cmp al, 0x3e
je 0x478502
inc ebp
cmp ebp, ebx
jae 0x47874e
mov al, byte [ebp]
cmp al, dl
jne 0x4784dd
mov al, byte [ebp]
mov dword [esp + 0x2c], ebp
cmp al, dl
jne 0x478728
inc ebp
cmp ebp, ebx
jae 0x47874e
mov al, byte [esp + 0x260]
mov ebx, ebp
test al, 2
mov dword [esp + 0x1c], 2
je 0x47854f
mov dword [esp + 0x1c], 6
jmp 0x47854f
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
mov edi, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x47830e
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.004790a0
test eax, eax
je 0x47830e
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmp edx, ecx
mov eax, edx
jge 0x47860a
shl eax, 1
cmp eax, ecx
jl 0x478588
cmp eax, edx
mov dword [esp + 0x68], eax
je 0x47860a
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.005a9fe9
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x70], eax
lea ecx, [ecx + ecx*2]
mov eax, dword [esp + 0x34]
shl ecx, 3
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4785ea
cmp dword [esp + 0x24], 1
jle 0x4785dd
mov eax, dword [esp + 0x10]
push eax
jmp 0x4785e2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005aa012
add esp, 4
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
push 1
mov dword [edx + eax + 0x10], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.004789f0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
mov dword [edx + eax + 0x14], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push edi
push eax
call fcn.004789f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
sub ebx, esi
mov dword [eax + ecx + 8], esi
mov esi, dword [esp + 0x20]
inc esi
mov dword [eax + ecx + 0xc], ebx
inc edx
add eax, 0x18
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
jmp 0x47830e
mov ebp, dword [esp + 0x74]
jmp 0x478728
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4786a9
inc ebp
cmp ebp, ebx
jae 0x47874e
jmp 0x478728
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
jle 0x4786ec
mov eax, dword [esp + 0x10]
add eax, 0x14
mov edx, dword [eax - 4]
mov ebx, dword [esp + 0x50]
add edx, ebx
mov dword [eax - 0x14], edx
mov edx, dword [eax]
mov edi, dword [esp + 0x50]
add eax, 0x18
add edx, edi
dec ecx
mov dword [eax - 0x28], edx
jne 0x4786cf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x25c]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x18]
inc ebp
push edx
push eax
mov dword [esp + 0x94], ebp
call fcn.004796e0
mov ebx, dword [esp + 0x40]
cmp ebp, ebx
jae 0x47874e
mov ecx, ebx
xor esi, esi
sub ecx, ebp
mov dword [esp + 0x58], esi
push ecx
push 0x3c
push ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
call fcn.005926c0
add esp, 0xc
cmp eax, esi
jne 0x4781cf
mov eax, dword [esp + 0x5c]
xor esi, esi
pop edi
cmp eax, esi
pop ebp
je 0x478767
mov edx, dword [esp + 0x48]
push edx
call fcn.005aa012
add esp, 4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
cmp eax, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x478794
mov edx, dword [esp + 8]
push edx
call fcn.005aa012
add esp, 4
pop esi
pop ebx
add esp, 0x240
ret 0x10