Function at 0x47c870
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 0x47c8f6
mov al, byte [edi + 0x2e4c]
test al, al
je 0x47c8f6
mov al, byte [ebp + 0x30]
test al, al
je 0x47c8f6
mov ecx, dword [edi + 0x2e54]
mov byte [esp + 0x54], 1
mov dword [esp + 0x60], ecx
jmp 0x47c998
mov eax, dword [ebx + 0x336c]
mov edx, dword [esp + 0xfc]
push edx
lea ecx, [eax + 8]
call fcn.00490720
xor esi, esi
lea ecx, [edi + 0x2a14]
test eax, eax
je 0x47c938
test al, 1
je 0x47c92d
cmp dword [ecx - 0x10], 0x16
jne 0x47c92d
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 0x47c914
mov al, byte [esp + 0x54]
test al, al
jne 0x47c998
mov eax, dword [edi + 0x2e00]
test eax, eax
je 0x47c998
mov ebx, dword [ebx + 0x336c]
mov eax, dword [esp + 0xfc]
push eax
lea ecx, [ebx + 8]
call fcn.00490720
and eax, dword [edi + 0x2e00]
je 0x47c998
xor esi, esi
lea ecx, [edi + 0x2a14]
mov edx, 5
test eax, eax
je 0x47c998
test al, 1
je 0x47c98d
cmp dword [ecx - 0x10], edx
je 0x47c98d
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 0x47c975
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x47c9b9
mov al, byte [esp + 0x54]
test al, al
jne 0x47c9b9
mov al, byte [edi + 0x2da4]
mov byte [esp + 0x1b], 1
test al, al
jne 0x47c9be
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.0048c480
cmp ebx, esi
mov dword [esp + 0x68], eax
jg 0x47ca0b
xor eax, eax
jmp 0x47ca1f
cmp ebx, dword [ebp + 0x58]
jge 0x47ca1c
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x47ca1c
mov eax, dword [eax + ebx*4]
jmp 0x47ca1f
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 0x47ca85
cmp ebx, esi
jg 0x47ca46
mov dword [esp + 0x5c], esi
jmp 0x47ca5d
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x47ca56
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x5c], eax
jmp 0x47ca5d
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x5c], edx
lea eax, [ebx + 1]
cmp eax, esi
jg 0x47ca6a
mov dword [esp + 0x40], esi
jmp 0x47ca85
cmp eax, ecx
jge 0x47ca7e
mov edx, dword [ebp + 4]
cmp edx, esi
je 0x47ca7e
mov eax, dword [edx + eax*4]
mov dword [esp + 0x40], eax
jmp 0x47ca85
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 0x47cac8
lea eax, [ebx + 1]
cmp eax, ecx
jge 0x47cac8
cmp eax, esi
jg 0x47caa9
xor eax, eax
jmp 0x47cabc
cmp eax, ecx
jge 0x47cab9
mov edx, dword [ebp + 4]
cmp edx, esi
je 0x47cab9
mov eax, dword [edx + eax*4]
jmp 0x47cabc
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 0x47cbf9
cmp ebx, ecx
jge 0x47cbf9
test ebx, ebx
jg 0x47caf1
xor ebx, ebx
jmp 0x47cb00
mov eax, dword [ebp + 4]
test eax, eax
je 0x47cafd
mov ebx, dword [eax + ebx*4]
jmp 0x47cb00
mov ebx, dword [ebp + 0x18]
test ebx, ebx
setne al
test al, al
je 0x47cbf9
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 0x47cbdd
mov edx, ecx
test byte [edx + 0x3360], al
je 0x47cb97
mov eax, dword [esp + 0x74]
mov ecx, dword [edi + 0x2d70]
sub eax, ecx
mov dword [esp + 0x6c], eax
jmp 0x47cba7
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.0047c4c0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3368]
imul edx, dword [edi + 0x2d70]
add ebx, edx
mov dword [esp + 0x104], ebx
jmp 0x47cc00
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 0x47cf29
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 0x47cf29
mov edx, dword [ebp + 0x3c]
lea ecx, [edx + eax]
mov dword [esp + 0x34], ecx
mov dl, byte [ecx]
cmp dl, byte [ecx + 1]
jne 0x47cc9d
mov ecx, dword [esp + 0x40]
dec ecx
cmp eax, ecx
je 0x47cc9d
mov edx, dword [ebp + 0x38]
lea ecx, [edx + eax]
movsx edx, byte [edx + eax]
test edx, edx
jl 0x47cc69
cmp edx, 0x20
jl 0x47cc9d
movsx ecx, byte [ecx + 1]
test ecx, ecx
jl 0x47cc76
cmp ecx, 0x20
jl 0x47cc9d
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
je 0x47cc91
mov ecx, dword [esp + 0x68]
lea ecx, [eax + ecx + 1]
cmp ecx, edx
je 0x47cc9d
cmp ecx, dword [ebp + 0x2c]
je 0x47cc9d
mov edx, dword [ebp + 0x34]
dec edx
cmp eax, edx
jne 0x47cf07
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 0x47ceef
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x108]
cmp eax, ecx
jl 0x47ceef
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 0x47cd1b
mov edx, dword [ebp + 0x2c]
cmp eax, edx
jge 0x47cd1b
cmp ecx, edx
mov byte [esp + 0x64], 1
jne 0x47cd20
mov byte [esp + 0x64], 0
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x47cd38
cmp eax, ecx
jl 0x47cd38
mov ecx, dword [ebp + 0x50]
mov byte [esp + 0x4c], 1
cmp eax, ecx
jl 0x47cd3d
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.0047c370
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x30]
mov al, byte [edx + ecx]
cmp al, 9
jne 0x47cdd0
mov al, byte [esp + 0x1b]
test al, al
je 0x47cd9f
mov al, byte [esp + 0x13]
test al, al
je 0x47cd95
cmp dword [edi + 0x2e3c], 1
jne 0x47cd9f
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 0x47ceef
movsx eax, al
test eax, eax
jl 0x47cde3
cmp eax, 0x20
jge 0x47cde3
mov byte [esp + 0x13], 0
jmp 0x47cd9f
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 0x47ce33
mov al, byte [esp + 0x13]
test al, al
je 0x47ceef
mov al, byte [edi + 0x2e40]
test al, al
je 0x47ceef
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 0x47ceef
lea eax, [edx*4]
mov dword [esp + 0x3c], eax
jmp 0x47ce5e
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x38]
add edx, ecx
cmp byte [edx + eax], 0x20
jne 0x47cece
mov al, byte [esp + 0x1b]
test al, al
je 0x47ced3
mov al, byte [esp + 0x13]
test al, al
je 0x47ce82
cmp dword [edi + 0x2e3c], 1
jne 0x47ced3
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 0x47ced3
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 0x47ce5a
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 0x47cc32
mov al, byte [edx + 0x31ca]
test al, al
je 0x47cf9f
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.0047c630
mov ecx, dword [esp + 0x11c]
mov al, byte [esp + 0x5a]
test ecx, ecx
mov byte [esp + 0x13], al
jg 0x47cfbc
mov dword [esp + 0x2c], 0
jmp 0x47cfd8
cmp ecx, dword [ebp + 0x58]
jge 0x47cfd1
mov eax, dword [ebp + 4]
test eax, eax
je 0x47cfd1
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x2c], ecx
jmp 0x47cfd8
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 0x47d9da
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 0x47d054
mov eax, dword [esp + 0x40]
dec eax
cmp edx, eax
je 0x47d054
mov ecx, dword [ebp + 0x38]
lea eax, [ecx + edx]
movsx ecx, byte [ecx + edx]
test ecx, ecx
jl 0x47d023
cmp ecx, 0x20
jl 0x47d054
movsx eax, byte [eax + 1]
test eax, eax
jl 0x47d030
cmp eax, 0x20
jl 0x47d054
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
cmp eax, ecx
je 0x47d048
mov ecx, dword [esp + 0x3c]
inc ecx
cmp ecx, eax
je 0x47d054
cmp ecx, dword [ebp + 0x2c]
je 0x47d054
mov eax, dword [ebp + 0x34]
dec eax
cmp edx, eax
jne 0x47d9c9
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 0x47d9bc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x108]
cmp edx, eax
jl 0x47d9bc
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 0x47d101
cmp edx, ecx
jl 0x47d101
mov ecx, dword [esp + 0x14]
cmp edx, dword [ecx + 0x3344]
jge 0x47d101
mov cl, byte [edi + 0x2dd8]
test cl, cl
je 0x47d101
mov ecx, dword [edi + 0x2de0]
mov dword [esp + 0x34], ecx
cmp edx, dword [ebp + 0x28]
jl 0x47d39b
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
jge 0x47d39b
cmp dword [ebp + 0x28], ecx
je 0x47d397
mov cl, byte [edi + 0x2d78]
mov byte [esp + 0x7c], 1
test cl, cl
je 0x47d137
mov edx, dword [edi + 0x2d80]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x47d153
cmp edx, ecx
jl 0x47d153
mov ecx, dword [ebp + 0x50]
mov byte [esp + 0x64], 1
cmp edx, ecx
jl 0x47d158
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.0047c370
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x30]
mov al, byte [eax + ecx]
cmp al, 9
jne 0x47d3a5
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0x31ca]
test al, al
jne 0x47d1f4
mov al, byte [esp + 0x1b]
test al, al
je 0x47d1c8
mov al, byte [esp + 0x13]
test al, al
je 0x47d1be
cmp dword [edi + 0x2e3c], 1
jne 0x47d1c8
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 0x47d214
mov al, byte [esp + 0x13]
test al, al
je 0x47d301
mov al, byte [edi + 0x2e40]
test al, al
je 0x47d234
mov al, byte [edi + 0x2d98]
test al, al
je 0x47d228
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 0x47d301
mov al, byte [edi + 0x2e40]
test al, al
je 0x47d301
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 0x47d301
lea edx, [eax + ebx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
cmp eax, dword [ecx + edx*4]
jl 0x47d2dd
test eax, eax
jle 0x47d2dd
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.0047c440
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 0x47d281
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x47d8ad
mov cl, byte [esp + 0x13]
test cl, cl
je 0x47d320
cmp eax, 1
jne 0x47d8ad
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.0047ba50
add esp, 0x18
jmp 0x47d8ad
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x7c], 0
jmp 0x47d13b
movsx ecx, al
test ecx, ecx
jl 0x47d5ad
cmp ecx, 0x20
jge 0x47d5ad
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
cmp dword [ecx + 0x31bc], 0x20
jge 0x47d549
push eax
call fcn.00478d00
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
add esp, 4
mov al, byte [edx + 0x31ca]
test al, al
jne 0x47d416
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.0047ba30
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 0x47d8ad
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 0x47d8ad
mov edx, dword [esp + 0x80]
mov al, byte [edx + 0x22c]
test al, al
je 0x47d675
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov cl, byte [eax + 0x31ca]
test cl, cl
je 0x47d622
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 0x47d675
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 0x47d699
mov al, byte [esp + 0x13]
test al, al
je 0x47d8ad
mov al, byte [edi + 0x2e40]
test al, al
je 0x47d8ad
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 0x47d8ad
lea eax, [edx*4]
mov dword [esp + 0x38], eax
jmp 0x47d6c4
mov edx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [ebp + 0x38]
cmp byte [ecx + edx], 0x20
jne 0x47d888
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x47d807
mov cl, byte [edi + 0x2d98]
test cl, cl
je 0x47d6f5
mov ecx, dword [edi + 0x2da0]
mov dword [esp + 0x34], ecx
mov cl, byte [esp + 0x13]
test cl, cl
je 0x47d706
cmp eax, 1
jne 0x47d807
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 0x47d7a9
mov al, byte [esp + 0x1b]
test al, al
je 0x47d7a9
mov al, byte [esp + 0x13]
test al, al
je 0x47d75e
cmp dword [edi + 0x2e3c], 1
jne 0x47d7a9
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 0x47d88d
mov al, byte [edi + 0x2e40]
test al, al
je 0x47d88d
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + ecx]
test eax, eax
mov dword [esp + 0x88], eax
jle 0x47d88d
cdq
idiv dword [esp + 0x8c]
test edx, edx
jne 0x47d88d
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.0047c440
jmp 0x47d88d
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 0x47d6c0
mov eax, dword [ebp + 0x4c]
cmp eax, 0xffffffff
je 0x47d93c
mov cl, byte [edi + 0x2df0]
test cl, cl
je 0x47d93c
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jl 0x47d93c
cmp ecx, dword [ebp + 0x50]
jge 0x47d93c
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 0x47d913
mov ecx, dword [edi + 0x2de0]
jmp 0x47d917
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 0x47d9b4
mov ecx, dword [esp + 0x80]
mov al, byte [ecx + 0x225]
test al, al
je 0x47d9bc
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 0x47cfec
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 0x47db0a
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 0x47daea
test eax, eax
jge 0x47da50
cmp ecx, dword [esp + 0x40]
jge 0x47da48
mov edx, dword [ebp + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x38]
test edx, ecx
mov ecx, dword [esp + 0x3c]
je 0x47da48
mov eax, ecx
mov dword [esp + 0x44], eax
test eax, eax
jl 0x47dad9
cmp ecx, dword [esp + 0x40]
jge 0x47da65
mov edx, dword [ebp + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x38]
test edx, ecx
jne 0x47dad5
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.004d34c0
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 0x47da25
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 0x47da0a
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x31ca]
test al, al
jne 0x47db84
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.0047c630
cmp dword [edi + 0x2e60], 1
jne 0x47dbc9
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