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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
or dword [esp + 0xc], 0xffffffff
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x34], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov edx, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea eax, [edi - 1]
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], edx
test esi, esi
je 0x47a6d5
test edi, edi
je 0x47a6d5
cmp dword [ebp + 0x18], ebx
je 0x47a6d5
cmp dword [esi + 0x20], ebx
mov eax, 0x6861c0
mov dword [esp + 0x5c], 0x989680
cmovne eax, dword [esi + 0x20]
cmp dword [esi], 0x50435245
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x10], eax
je 0x47a283
lea eax, [esp + 0xc0]
push eax
push ebx
lea edx, [esp + 0xf0]
call fcn.0047a703
mov edx, eax
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test edx, edx
jne 0x47a283
push 0xfffffffffffffffc
jmp 0x47a6d7
mov ecx, dword [edx + 8]
mov eax, ecx
shr eax, 4
and eax, 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], eax
mov eax, ecx
shr eax, 0x1c
and eax, 1
mov dword [esp + 0x98], edi
mov dword [esp + 0x34], eax
mov eax, ecx
movzx ecx, word [edx + 0x1c]
shr eax, 0x12
and eax, 1
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x48], eax
movzx eax, word [edx + 0x1a]
imul ecx, eax
movzx eax, word [edx + 0x18]
xor edx, edx
inc edx
mov dword [esp + 0x78], ebx
push 3
mov dword [esp + 0x80], ebx
add ecx, esi
mov dword [esp + 0x8c], ebx
add eax, ecx
mov dword [esp + 0x90], ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], eax
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0xc]
add eax, edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0xa0], eax
mov eax, ecx
shr eax, 5
and eax, edx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x88], eax
mov eax, ecx
shr eax, 0xb
and ecx, 7
and eax, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
add eax, 0x340
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1c]
cdq
pop esi
idiv esi
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
sub eax, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], eax
movzx edx, word [ecx + 0x12]
test dx, dx
je 0x47a3ac
mov esi, edx
cdq
idiv dword [esp + 0x1c]
cmp esi, eax
jl 0x47a3ac
lea eax, [esi + 1]
imul eax, eax, 3
mov dword [esp + 0xc], eax
shl eax, 2
push eax
call fcn.005574de
mov esi, eax
mov dword [esp + 0x64], esi
pop ecx
test esi, esi
jne 0x47a39f
push 0xfffffffffffffffa
jmp 0x47a6d7
mov ecx, dword [esp + 0x14]
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
jmp 0x47a3b3
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x60], esi
mov edx, dword [esp + 0xc]
mov dword [esp + 0x64], edx
or dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x74], ebx
lea eax, [edx + edx]
cdq
idiv dword [esp + 0x1c]
mov dword [esp + 0x68], eax
movzx eax, word [ecx + 0x10]
lea edx, [eax*2 + 2]
cmp edx, dword [ebp + 0x1c]
cmovg edx, dword [esp + 0xc]
mov dword [esp + 0x54], edx
test esi, esi
je 0x47a416
mov eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
mov ecx, eax
xor eax, eax
sar ecx, 1
inc eax
sub eax, ecx
lea ecx, [esi + edx*4]
lea eax, [ecx + eax*4]
sub ecx, 4
cmp ecx, eax
jb 0x47a412
or dword [ecx], 0xffffffff
jmp 0x47a406
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x4c], ebx
jne 0x47a44a
test dword [ecx + 8], 0x40000000
je 0x47a44a
movzx eax, word [ecx + 0x14]
movzx edx, al
shr eax, 8
and eax, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
je 0x47a44e
movzx edx, byte [eax + edx]
mov dword [esp + 0x18], edx
jmp 0x47a44e
mov eax, dword [esp + 0x10]
test dword [ecx + 8], 0x20000000
je 0x47a478
movzx ecx, word [ecx + 0x16]
movzx edx, cl
shr ecx, 8
and ecx, 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], ecx
movzx eax, byte [eax + edx + 0x100]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x24]
mov edx, ecx
mov dword [esp + 0x1c], edx
test esi, esi
je 0x47a4c4
mov ecx, dword [esp + 0x54]
and dword [esp + 0x14], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0xc], ebx
lea eax, [esi + ecx*4]
lea ecx, [ecx*4 + 3]
shr ecx, 2
cmp esi, eax
cmova ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47a4c0
mov eax, esi
or dword [eax], 0xffffffff
lea eax, [eax + 4]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ecx
jb 0x47a4b0
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x48], ebx
je 0x47a4dc
mov eax, edi
cmp edi, ecx
jae 0x47a4da
cmp byte [eax], 0xa
je 0x47a4da
inc eax
cmp eax, ecx
jb 0x47a4d0
mov ecx, eax
cmp dword [esp + 0x18], ebx
jl 0x47a516
cmp dword [esp + 0x38], ebx
je 0x47a510
jmp 0x47a500
mov edx, dword [esp + 0x10]
movzx eax, byte [edi]
movzx eax, byte [eax + edx]
mov edx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
je 0x47a532
inc edi
cmp edi, ecx
jb 0x47a4ea
jmp 0x47a532
movzx eax, byte [edi]
cmp eax, dword [esp + 0x18]
je 0x47a532
inc edi
cmp edi, ecx
jb 0x47a506
jmp 0x47a532
cmp dword [esp + 0x34], ebx
je 0x47a532
cmp edi, dword [esp + 0x98]
jbe 0x47a532
jmp 0x47a52e
cmp byte [edi - 1], 0xa
je 0x47a532
inc edi
cmp edi, ecx
jb 0x47a527
mov dword [esp + 0x24], edx
cmp dword [esp + 0x28], ebx
jl 0x47a5b7
mov eax, edx
sub eax, edi
cmp eax, 0x3e8
jge 0x47a5b7
cmp dword [esp + 0x8c], ebx
jne 0x47a5b7
xor ecx, ecx
cmp dword [esp + 0x18], ecx
setge cl
add ecx, edi
cmp ecx, dword [esp + 0x44]
jbe 0x47a5b7
cmp dword [esp + 0x3c], ebx
je 0x47a58f
cmp ecx, edx
jae 0x47a61a
movzx eax, byte [ecx]
mov dword [esp + 0x20], ecx
inc ecx
cmp eax, dword [esp + 0x28]
je 0x47a589
cmp eax, dword [esp + 0x40]
je 0x47a589
cmp ecx, edx
jb 0x47a56f
jmp 0x47a5af
mov ecx, dword [esp + 0x20]
jmp 0x47a5af
cmp ecx, edx
jae 0x47a61a
movzx eax, byte [ecx]
mov dword [esp + 0x20], ecx
inc ecx
cmp eax, dword [esp + 0x28]
je 0x47a5ab
cmp ecx, edx
jb 0x47a597
jmp 0x47a5af
mov ecx, dword [esp + 0x20]
cmp ecx, edx
jae 0x47a61a
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x58]
push 2
push ebx
push dword [esp + 0x34]
mov ecx, edi
mov dword [esp + 0xac], edi
push eax
push 2
mov dword [esp + 0x6c], ebx
call fcn.00478931
add esp, 0x14
test eax, eax
jne 0x47a648
cmp dword [esp + 0x48], ebx
je 0x47a5ed
cmp byte [edi], 0xa
je 0x47a616
inc edi
cmp dword [esp + 0x4c], ebx
jne 0x47a616
cmp edi, dword [esp + 0x1c]
ja 0x47a616
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
jmp 0x47a478
mov esi, dword [esp + 0x60]
cmp dword [esp + 0x30], ebx
je 0x47a627
push esi
call fcn.0054400d
pop ecx
cmp dword [esp + 0x8c], ebx
je 0x47a640
cmp dword [esp + 0x90], ebx
je 0x47a640
push 0xfffffffffffffff4
jmp 0x47a6d7
or eax, 0xffffffff
jmp 0x47a6d8
cmp eax, 1
jne 0x47a6d8
cmp dword [esp + 0x30], ebx
je 0x47a69e
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0x60]
lea eax, [eax*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [ebp + 0x18]
add eax, 8
push eax
call fcn.005447e0
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
cmp dword [esp + 0xa8], ecx
mov eax, dword [esp + 0x74]
push 1
pop ecx
cmovg eax, ecx
push esi
mov dword [esp + 0x38], eax
call fcn.0054400d
mov eax, dword [esp + 0x38]
pop ecx
jmp 0x47a6a2
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x47a6b4
mov eax, dword [esp + 0xa8]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [ebp + 0x18]
sub edi, dword [esp + 0x98]
mov ecx, dword [esp + 0xa4]
sub ecx, dword [esp + 0x98]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov eax, ebx
jmp 0x47a6d8
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret