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

Disassembly:
sub esp, 0xe0
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0x100]
push ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x108]
mov ebx, ecx
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 0x321c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0xf8]
test al, al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x54], 0
mov dword [esp + 0x60], 0
je 0x47a576
mov al, byte [edi + 0x2e4c]
test al, al
je 0x47a576
mov al, byte [ebp + 0x30]
test al, al
je 0x47a576
mov ecx, dword [edi + 0x2e54]
mov byte [esp + 0x54], 1
mov dword [esp + 0x60], ecx
jmp 0x47a618
mov eax, dword [ebx + 0x336c]
mov edx, dword [esp + 0xfc]
push edx
lea ecx, [eax + 8]
call fcn.0048e3c0
xor esi, esi
lea ecx, [edi + 0x2a14]
test eax, eax
je 0x47a5b8
test al, 1
je 0x47a5ad
cmp dword [ecx - 0x10], 0x16
jne 0x47a5ad
mov edx, dword [ecx]
mov byte [esp + 0x54], 1
mov dword [esp + 0x60], edx
sar eax, 1
inc esi
add ecx, 0x18
cmp esi, 0x20
jl 0x47a594
mov al, byte [esp + 0x54]
test al, al
jne 0x47a618
mov eax, dword [edi + 0x2e00]
test eax, eax
je 0x47a618
mov ebx, dword [ebx + 0x336c]
mov eax, dword [esp + 0xfc]
push eax
lea ecx, [ebx + 8]
call fcn.0048e3c0
and eax, dword [edi + 0x2e00]
je 0x47a618
xor esi, esi
lea ecx, [edi + 0x2a14]
mov edx, 5
test eax, eax
je 0x47a618
test al, 1
je 0x47a60d
cmp dword [ecx - 0x10], edx
je 0x47a60d
mov ebx, dword [ecx]
mov byte [esp + 0x54], 1
mov dword [esp + 0x60], ebx
sar eax, 1
inc esi
add ecx, 0x18
cmp esi, 0x20
jl 0x47a5f5
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x47a639
mov al, byte [esp + 0x54]
test al, al
jne 0x47a639
mov al, byte [edi + 0x2da4]
mov byte [esp + 0x1b], 1
test al, al
jne 0x47a63e
mov byte [esp + 0x1b], 0
mov ebx, dword [esp + 0x11c]
mov ecx, dword [esp + 0x14]
xor esi, esi
mov edx, dword [esp + 0xfc]
mov ecx, dword [ecx + 0x336c]
cmp ebx, esi
sete al
mov byte [esp + 0x5a], al
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x4b0]
push edx
imul eax, dword [edi + 0x2d74]
mov dword [esp + 0x90], eax
call fcn.0048a0e0
cmp ebx, esi
mov dword [esp + 0x68], eax
jg 0x47a68b
xor eax, eax
jmp 0x47a69f
cmp ebx, dword [ebp + 0x58]
jge 0x47a69c
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x47a69c
mov eax, dword [eax + ebx*4]
jmp 0x47a69f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x40], esi
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x58]
cmp ebx, ecx
mov dword [esp + 0x50], edx
jge 0x47a705
cmp ebx, esi
jg 0x47a6c6
mov dword [esp + 0x5c], esi
jmp 0x47a6dd
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x47a6d6
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x5c], eax
jmp 0x47a6dd
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x5c], edx
lea eax, [ebx + 1]
cmp eax, esi
jg 0x47a6ea
mov dword [esp + 0x40], esi
jmp 0x47a705
cmp eax, ecx
jge 0x47a6fe
mov edx, dword [ebp + 4]
cmp edx, esi
je 0x47a6fe
mov eax, dword [edx + eax*4]
mov dword [esp + 0x40], eax
jmp 0x47a705
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x84], 0
test byte [eax + 0x335c], 1
je 0x47a748
lea eax, [ebx + 1]
cmp eax, ecx
jge 0x47a748
cmp eax, esi
jg 0x47a729
xor eax, eax
jmp 0x47a73c
cmp eax, ecx
jge 0x47a739
mov edx, dword [ebp + 4]
cmp edx, esi
je 0x47a739
mov eax, dword [edx + eax*4]
jmp 0x47a73c
mov eax, dword [ebp + 0x18]
cmp eax, esi
setne dl
mov byte [esp + 0x84], dl
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xf4]
mov edx, dword [eax + 0x3368]
test edx, edx
je 0x47a879
cmp ebx, ecx
jge 0x47a879
test ebx, ebx
jg 0x47a771
xor ebx, ebx
jmp 0x47a780
mov eax, dword [ebp + 4]
test eax, eax
je 0x47a77d
mov ebx, dword [eax + ebx*4]
jmp 0x47a780
mov ebx, dword [ebp + 0x18]
test ebx, ebx
setne al
test al, al
je 0x47a879
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x2d70]
mov ebx, dword [esp + 0x104]
imul eax, edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x50]
sub ecx, ecx
mov edx, dword [esi]
add ecx, ebx
add eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0xc10]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x14]
mov al, 2
test byte [ecx + 0x335c], al
je 0x47a85d
mov edx, ecx
test byte [edx + 0x3360], al
je 0x47a817
mov eax, dword [esp + 0x74]
mov ecx, dword [edi + 0x2d70]
sub eax, ecx
mov dword [esp + 0x6c], eax
jmp 0x47a827
mov eax, dword [edi + 0x2d70]
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x2da0]
mov edx, dword [esp + 0x6c]
push eax
push 0
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x30]
call fcn.0047a140
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3368]
imul edx, dword [edi + 0x2d70]
add ebx, edx
mov dword [esp + 0x104], ebx
jmp 0x47a880
mov ebx, dword [esp + 0x104]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov cl, byte [edx + 0x31ca]
test cl, cl
je 0x47aba9
lea ecx, [eax*4 + 4]
mov dword [esp + 0x48], ecx
mov ecx, 1
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
cmp eax, dword [esp + 0x40]
jge 0x47aba9
mov edx, dword [ebp + 0x3c]
lea ecx, [edx + eax]
mov dword [esp + 0x34], ecx
mov dl, byte [ecx]
cmp dl, byte [ecx + 1]
jne 0x47a91d
mov ecx, dword [esp + 0x40]
dec ecx
cmp eax, ecx
je 0x47a91d
mov edx, dword [ebp + 0x38]
lea ecx, [edx + eax]
movsx edx, byte [edx + eax]
test edx, edx
jl 0x47a8e9
cmp edx, 0x20
jl 0x47a91d
movsx ecx, byte [ecx + 1]
test ecx, ecx
jl 0x47a8f6
cmp ecx, 0x20
jl 0x47a91d
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
je 0x47a911
mov ecx, dword [esp + 0x68]
lea ecx, [eax + ecx + 1]
cmp ecx, edx
je 0x47a91d
cmp ecx, dword [ebp + 0x2c]
je 0x47a91d
mov edx, dword [ebp + 0x34]
dec edx
cmp eax, edx
jne 0x47ab87
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x50]
shl eax, 2
mov eax, dword [ecx + eax]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ebx
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x1c], eax
add ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x110]
cmp eax, ecx
jg 0x47ab6f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x108]
cmp eax, ecx
jl 0x47ab6f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0x28]
add eax, edx
cmp eax, ecx
jl 0x47a99b
mov edx, dword [ebp + 0x2c]
cmp eax, edx
jge 0x47a99b
cmp ecx, edx
mov byte [esp + 0x64], 1
jne 0x47a9a0
mov byte [esp + 0x64], 0
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x47a9b8
cmp eax, ecx
jl 0x47a9b8
mov ecx, dword [ebp + 0x50]
mov byte [esp + 0x4c], 1
cmp eax, ecx
jl 0x47a9bd
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x4c]
push ebp
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x54]
push edi
push eax
call fcn.00479ff0
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x30]
mov al, byte [edx + ecx]
cmp al, 9
jne 0x47aa50
mov al, byte [esp + 0x1b]
test al, al
je 0x47aa1f
mov al, byte [esp + 0x13]
test al, al
je 0x47aa15
cmp dword [edi + 0x2e3c], 1
jne 0x47aa1f
mov eax, dword [edi + 0x2dac]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
jmp 0x47ab6f
movsx eax, al
test eax, eax
jl 0x47aa63
cmp eax, 0x20
jge 0x47aa63
mov byte [esp + 0x13], 0
jmp 0x47aa1f
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x47aab3
mov al, byte [esp + 0x13]
test al, al
je 0x47ab6f
mov al, byte [edi + 0x2e40]
test al, al
je 0x47ab6f
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
js 0x47ab6f
lea eax, [edx*4]
mov dword [esp + 0x3c], eax
jmp 0x47aade
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x38]
add edx, ecx
cmp byte [edx + eax], 0x20
jne 0x47ab4e
mov al, byte [esp + 0x1b]
test al, al
je 0x47ab53
mov al, byte [esp + 0x13]
test al, al
je 0x47ab02
cmp dword [edi + 0x2e3c], 1
jne 0x47ab53
mov ebp, dword [ebp + 0x44]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + ebp]
mov edx, dword [esp + 0x2c]
add ecx, edx
add eax, ebx
mov edx, dword [esi]
mov ecx, dword [ebp + ecx*4 + 4]
mov ebp, dword [edi + 0x2dac]
push ebp
add ecx, ebx
sub esp, 0x10
mov ebp, esp
mov dword [ebp], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x118]
jmp 0x47ab53
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
inc ecx
add edx, 4
cmp ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
jle 0x47aada
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
add eax, edx
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
inc eax
add edx, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 0x31ca]
test cl, cl
jne 0x47a8b2
mov al, byte [edx + 0x31ca]
test al, al
je 0x47ac1f
mov ecx, dword [edi + 0x2da0]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x110]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x128]
push edx
push ebp
mov edx, dword [esp + 0x134]
sub esp, 0x10
mov eax, esp
push edi
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x150]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x154]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
call fcn.0047a2b0
mov ecx, dword [esp + 0x11c]
mov al, byte [esp + 0x5a]
test ecx, ecx
mov byte [esp + 0x13], al
jg 0x47ac3c
mov dword [esp + 0x2c], 0
jmp 0x47ac58
cmp ecx, dword [ebp + 0x58]
jge 0x47ac51
mov eax, dword [ebp + 4]
test eax, eax
je 0x47ac51
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x2c], ecx
jmp 0x47ac58
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp edx, eax
mov dword [esp + 0x30], edx
jge 0x47b65a
mov eax, dword [esp + 0x68]
lea ecx, [edx + eax]
mov eax, dword [ebp + 0x3c]
add eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov cl, byte [eax]
cmp cl, byte [eax + 1]
jne 0x47acd4
mov eax, dword [esp + 0x40]
dec eax
cmp edx, eax
je 0x47acd4
mov ecx, dword [ebp + 0x38]
lea eax, [ecx + edx]
movsx ecx, byte [ecx + edx]
test ecx, ecx
jl 0x47aca3
cmp ecx, 0x20
jl 0x47acd4
movsx eax, byte [eax + 1]
test eax, eax
jl 0x47acb0
cmp eax, 0x20
jl 0x47acd4
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
cmp eax, ecx
je 0x47acc8
mov ecx, dword [esp + 0x3c]
inc ecx
cmp ecx, eax
je 0x47acd4
cmp ecx, dword [ebp + 0x2c]
je 0x47acd4
mov eax, dword [ebp + 0x34]
dec eax
cmp edx, eax
jne 0x47b649
mov ecx, dword [esp + 0x2c]
lea eax, [ecx*4]
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx + eax]
mov ecx, dword [ecx + edx*4 + 4]
sub eax, dword [esp + 0x50]
add eax, ebx
inc edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
sub ecx, edx
add ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x110]
cmp eax, ecx
jg 0x47b63c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x108]
cmp edx, eax
jl 0x47b63c
mov ecx, dword [esp + 0x34]
xor eax, eax
mov al, byte [ecx]
lea edx, [eax + eax*4]
shl edx, 4
lea ecx, [edx + edi]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x80], ecx
mov ecx, dword [ecx + 0x208]
mov dword [esp + 0x34], ecx
lea ecx, [eax + eax*4 + 0x23]
shl ecx, 4
add ecx, edi
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x47ad81
cmp edx, ecx
jl 0x47ad81
mov ecx, dword [esp + 0x14]
cmp edx, dword [ecx + 0x3344]
jge 0x47ad81
mov cl, byte [edi + 0x2dd8]
test cl, cl
je 0x47ad81
mov ecx, dword [edi + 0x2de0]
mov dword [esp + 0x34], ecx
cmp edx, dword [ebp + 0x28]
jl 0x47b01b
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
jge 0x47b01b
cmp dword [ebp + 0x28], ecx
je 0x47b017
mov cl, byte [edi + 0x2d78]
mov byte [esp + 0x7c], 1
test cl, cl
je 0x47adb7
mov edx, dword [edi + 0x2d80]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x47add3
cmp edx, ecx
jl 0x47add3
mov ecx, dword [ebp + 0x50]
mov byte [esp + 0x64], 1
cmp edx, ecx
jl 0x47add8
mov byte [esp + 0x64], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
push ebp
push ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x64]
push edi
push eax
call fcn.00479ff0
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x30]
mov al, byte [eax + ecx]
cmp al, 9
jne 0x47b025
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0x31ca]
test al, al
jne 0x47ae74
mov al, byte [esp + 0x1b]
test al, al
je 0x47ae48
mov al, byte [esp + 0x13]
test al, al
je 0x47ae3e
cmp dword [edi + 0x2e3c], 1
jne 0x47ae48
mov eax, dword [edi + 0x2dac]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x47ae94
mov al, byte [esp + 0x13]
test al, al
je 0x47af81
mov al, byte [edi + 0x2e40]
test al, al
je 0x47aeb4
mov al, byte [edi + 0x2d98]
test al, al
je 0x47aea8
mov ecx, dword [edi + 0x2da0]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
mov al, byte [esp + 0x13]
test al, al
je 0x47af81
mov al, byte [edi + 0x2e40]
test al, al
je 0x47af81
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x8c]
cdq
idiv ecx
mov edx, dword [esp + 0x30]
imul eax, ecx
mov ecx, dword [ebp + 0x44]
inc edx
mov dword [esp + 0x38], eax
cmp eax, dword [ecx + edx*4]
jge 0x47af81
lea edx, [eax + ebx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
cmp eax, dword [ecx + edx*4]
jl 0x47af5d
test eax, eax
jle 0x47af5d
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
mov eax, dword [esp + 0x1c]
sete cl
push ecx
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov eax, dword [edi + 0x2d64]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x114]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x34]
push esi
call fcn.0047a0c0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
add edx, ecx
add eax, ecx
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
inc edx
cmp eax, dword [ecx + edx*4]
jl 0x47af01
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x47b52d
mov cl, byte [esp + 0x13]
test cl, cl
je 0x47afa0
cmp eax, 1
jne 0x47b52d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc eax
add ecx, 4
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x2d6c]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x28]
dec edx
sub ecx, eax
mov eax, dword [edi + 0x2d64]
mov dword [esp + 0xc8], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0xc0]
push eax
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], edx
mov edx, dword [esp + 0xdc]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.004796d0
add esp, 0x18
jmp 0x47b52d
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x7c], 0
jmp 0x47adbb
movsx ecx, al
test ecx, ecx
jl 0x47b22d
cmp ecx, 0x20
jge 0x47b22d
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
cmp dword [ecx + 0x31bc], 0x20
jge 0x47b1c9
push eax
call fcn.00476960
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
add esp, 4
mov al, byte [edx + 0x31ca]
test al, al
jne 0x47b096
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
lea ebx, [edi + 0xd70]
push ebx
mov ecx, esi
call dword [edx + 0x68]
mov ebp, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x60]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x94], ecx
mov ecx, dword [edi + 0x2d68]
mov edx, dword [esp + 0x28]
sub eax, ebp
mov ebp, ecx
mov dword [esp + 0x90], ebx
sub ebp, eax
mov eax, dword [esp + 0x20]
add ebp, eax
mov dword [esp + 0x9c], edx
lea eax, [ecx + eax + 1]
inc ebx
mov dword [esp + 0x9c], eax
dec eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [ebp + 1]
mov dword [esp + 0xd8], ebp
sub esp, 0x10
mov dword [esp + 0xe8], ecx
mov eax, dword [esp + 0xe8]
mov ecx, esp
mov edx, dword [esi]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xb0], ebx
inc ebx
push ecx
mov dword [esp + 0xb4], ebx
mov ebx, dword [esp + 0x48]
dec eax
push edx
mov dword [esp + 0xbc], ebp
mov ebp, dword [esi]
push ebx
mov dword [esp + 0xc4], eax
call fcn.004796b0
add esp, 4
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [edi + 0x2d68]
add eax, ebx
push eax
lea eax, [edi + 0xd70]
push eax
mov eax, dword [esp + 0xcc]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xe0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [ebp + 0x4c]
mov ebx, dword [esp + 0x104]
mov ebp, dword [esp + 0x118]
jmp 0x47b52d
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov byte [esp + 0x5b], 0
mov cl, byte [eax + 0x31bc]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x5a], cl
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, dword [edi + 0x2d68]
lea eax, [esp + 0x62]
push 1
push eax
mov eax, dword [esp + 0x30]
add ecx, eax
lea eax, [edi + 0xd70]
push ecx
mov ecx, dword [esp + 0x30]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x48]
jmp 0x47b52d
mov edx, dword [esp + 0x80]
mov al, byte [edx + 0x22c]
test al, al
je 0x47b2f5
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov cl, byte [eax + 0x31ca]
test cl, cl
je 0x47b2a2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebp + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x50]
jmp 0x47b2f5
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebp + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x48]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x47b319
mov al, byte [esp + 0x13]
test al, al
je 0x47b52d
mov al, byte [edi + 0x2e40]
test al, al
je 0x47b52d
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
js 0x47b52d
lea eax, [edx*4]
mov dword [esp + 0x38], eax
jmp 0x47b344
mov edx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [ebp + 0x38]
cmp byte [ecx + edx], 0x20
jne 0x47b508
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x47b487
mov cl, byte [edi + 0x2d98]
test cl, cl
je 0x47b375
mov ecx, dword [edi + 0x2da0]
mov dword [esp + 0x34], ecx
mov cl, byte [esp + 0x13]
test cl, cl
je 0x47b386
cmp eax, 1
jne 0x47b487
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x4c]
mov ecx, dword [edx + 0x44]
mov edx, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x38]
mov ebp, dword [ecx + edx]
lea eax, [ecx + eax*4 + 4]
mov dword [esp + 0x88], eax
mov eax, dword [eax]
add eax, ebp
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x14]
sar ebp, 1
mov dl, byte [eax + 0x31ca]
test dl, dl
jne 0x47b429
mov al, byte [esp + 0x1b]
test al, al
je 0x47b429
mov al, byte [esp + 0x13]
test al, al
je 0x47b3de
cmp dword [edi + 0x2e3c], 1
jne 0x47b429
mov edx, dword [edi + 0x2dac]
mov eax, ebx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x38]
add eax, dword [ecx + edx]
mov edx, dword [esp + 0x88]
mov ecx, ebx
mov ebx, dword [edx]
mov edx, dword [esi]
add ecx, ebx
mov ebx, dword [esp + 0x48]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov ebx, dword [esp + 0x104]
mov eax, dword [esp + 0x50]
sub ebp, eax
mov eax, dword [edi + 0x2d64]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, edx
add ebp, ebx
lea ecx, [eax + 1]
lea edx, [ebp + 1]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0xec], edx
sub esp, 0x10
mov edx, dword [esi]
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xfc]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x100]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ebp, dword [esp + 0x118]
mov al, byte [esp + 0x13]
test al, al
je 0x47b50d
mov al, byte [edi + 0x2e40]
test al, al
je 0x47b50d
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + ecx]
test eax, eax
mov dword [esp + 0x88], eax
jle 0x47b50d
cdq
idiv dword [esp + 0x8c]
test edx, edx
jne 0x47b50d
mov eax, dword [esp + 0x88]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
sete cl
push ecx
mov ecx, dword [esp + 0x20]
sub esp, 0x10
add eax, ebx
mov edx, esp
push eax
mov eax, dword [esp + 0x118]
mov dword [edx], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], ecx
mov edx, dword [edi + 0x2d64]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push esi
call fcn.0047a0c0
jmp 0x47b50d
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
inc ecx
add edx, 4
cmp ecx, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], edx
jle 0x47b340
mov eax, dword [ebp + 0x4c]
cmp eax, 0xffffffff
je 0x47b5bc
mov cl, byte [edi + 0x2df0]
test cl, cl
je 0x47b5bc
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jl 0x47b5bc
cmp ecx, dword [ebp + 0x50]
jge 0x47b5bc
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov edx, dword [edi + 0x2d68]
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [edx + ecx + 1]
mov edx, dword [esi]
mov dword [esp + 0x70], ecx
inc ecx
mov dword [esp + 0x78], ecx
mov cl, byte [edi + 0x2dd8]
test cl, cl
je 0x47b593
mov ecx, dword [edi + 0x2de0]
jmp 0x47b597
mov ecx, dword [esp + 0x34]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x84]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x88]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x8c]
jmp 0x47b634
mov ecx, dword [esp + 0x80]
mov al, byte [ecx + 0x225]
test al, al
je 0x47b63c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xac], edx
mov edx, dword [edi + 0x2d68]
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [edx + ecx + 1]
mov edx, dword [esi]
mov dword [esp + 0xa4], ecx
inc ecx
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x34]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0xb8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xbc]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, ecx
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
inc edx
cmp edx, eax
mov dword [esp + 0x30], edx
jl 0x47ac6c
mov edx, dword [esp + 0x14]
mov eax, 1
mov ecx, dword [edx + 0x336c]
mov ecx, dword [ecx + 0x498]
shl eax, cl
cmp eax, 0x100
mov dword [esp + 0x38], eax
jge 0x47b78a
lea edx, [edi + 0x2d04]
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x5c]
or eax, 0xffffffff
mov edx, ecx
mov dword [esp + 0x44], eax
cmp edx, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
jg 0x47b76a
test eax, eax
jge 0x47b6d0
cmp ecx, dword [esp + 0x40]
jge 0x47b6c8
mov edx, dword [ebp + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x38]
test edx, ecx
mov ecx, dword [esp + 0x3c]
je 0x47b6c8
mov eax, ecx
mov dword [esp + 0x44], eax
test eax, eax
jl 0x47b759
cmp ecx, dword [esp + 0x40]
jge 0x47b6e5
mov edx, dword [ebp + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x38]
test edx, ecx
jne 0x47b755
mov ecx, dword [ebp + 0x44]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + eax*4]
sub eax, edx
mov edx, dword [esp + 0x44]
add eax, ebx
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [edi + 0x2d68]
add ecx, ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x10c]
add ecx, edx
lea edx, [esp + 0x108]
mov dword [esp + 0x94], ecx
add ecx, 3
lea eax, [esp + 0x90]
push edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x50]
push eax
push esi
call fcn.004d11e0
or eax, 0xffffffff
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
inc ecx
cmp ecx, edx
mov dword [esp + 0x3c], ecx
jle 0x47b6a5
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
shl eax, 1
add edx, 0xc
cmp eax, 0x100
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], edx
jl 0x47b68a
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x31ca]
test al, al
jne 0x47b804
mov edx, dword [edi + 0x2da0]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x128]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x110]
push ecx
push ebx
push edx
mov edx, dword [esp + 0x128]
push eax
push ebp
mov eax, dword [esp + 0x134]
sub esp, 0x10
mov ecx, esp
push edi
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x150]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x154]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x54]
call fcn.0047a2b0
cmp dword [edi + 0x2e60], 1
jne 0x47b849
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, dword [ecx + 0x32b4]
imul eax, dword [edi + 0x2d74]
mov edi, dword [edi + 0x2e5c]
add eax, ebx
push edi
sub esp, 0x10
lea ecx, [eax + 1]
mov edi, esp
mov dword [edi], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret 0x2c