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

Disassembly:
sub esp, 0xf4
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0x110]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x120]
mov dword [esp + 0x18], eax
mov al, byte [ecx + 0x3228]
push ebp
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, dword [esp + 0x10c]
test al, al
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x4c], 0
mov dword [esp + 0x5c], 0
je 0x56a834
mov al, byte [edi + 0x2e4c]
test al, al
je 0x56a834
mov al, byte [ebx + 0x30]
test al, al
je 0x56a834
mov eax, dword [edi + 0x2e54]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x5c], eax
jmp 0x56a8dd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x110]
push edx
mov eax, dword [ecx + 0x3378]
lea ecx, [eax + 8]
call fcn.0057dca0
mov dl, byte [esp + 0x4c]
lea esi, [edi + 0x2a14]
xor ebp, ebp
mov ecx, esi
test eax, eax
je 0x56a87d
test al, 1
je 0x56a872
cmp dword [ecx - 0x10], 0x16
jne 0x56a872
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
mov dl, 1
sar eax, 1
inc ebp
add ecx, 0x18
cmp ebp, 0x20
jl 0x56a85c
test dl, dl
mov byte [esp + 0x4c], dl
jne 0x56a8dd
mov eax, dword [edi + 0x2e00]
test eax, eax
je 0x56a8dd
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x110]
push ecx
mov eax, dword [eax + 0x3378]
lea ecx, [eax + 8]
call fcn.0057dca0
and eax, dword [edi + 0x2e00]
je 0x56a8dd
mov ecx, esi
xor edx, edx
mov esi, 5
test eax, eax
je 0x56a8dd
test al, 1
je 0x56a8d2
cmp dword [ecx - 0x10], esi
je 0x56a8d2
mov ebp, dword [ecx]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x5c], ebp
sar eax, 1
inc edx
add ecx, 0x18
cmp edx, 0x20
jl 0x56a8ba
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x56a8fe
mov al, byte [esp + 0x4c]
test al, al
jne 0x56a8fe
mov al, byte [edi + 0x2da4]
mov byte [esp + 0x1b], 1
test al, al
jne 0x56a903
mov byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x130]
mov edx, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [edx + 0x3378]
cmp ebp, esi
sete al
mov byte [esp + 0x56], al
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x4b0]
imul eax, dword [edi + 0x2d74]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x110]
push eax
call fcn.005799f0
cmp ebp, esi
mov dword [esp + 0x64], eax
jg 0x56a94d
xor eax, eax
jmp 0x56a961
cmp ebp, dword [ebx + 0x58]
jge 0x56a95e
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x56a95e
mov eax, dword [eax + ebp*4]
jmp 0x56a961
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], esi
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x58]
cmp ebp, ecx
mov dword [esp + 0x50], edx
jge 0x56a9c7
cmp ebp, esi
jg 0x56a988
mov dword [esp + 0x58], esi
jmp 0x56a99f
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x56a998
mov eax, dword [eax + ebp*4]
mov dword [esp + 0x58], eax
jmp 0x56a99f
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x58], edx
lea eax, [ebp + 1]
cmp eax, esi
jg 0x56a9ac
mov dword [esp + 0x44], esi
jmp 0x56a9c7
cmp eax, ecx
jge 0x56a9c0
mov edx, dword [ebx + 4]
cmp edx, esi
je 0x56a9c0
mov eax, dword [edx + eax*4]
mov dword [esp + 0x44], eax
jmp 0x56a9c7
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x88], 0
test byte [eax + 0x3368], 1
je 0x56aa0a
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x56aa0a
cmp eax, esi
jg 0x56a9eb
xor eax, eax
jmp 0x56a9fe
cmp eax, ecx
jge 0x56a9fb
mov edx, dword [ebx + 4]
cmp edx, esi
je 0x56a9fb
mov eax, dword [edx + eax*4]
jmp 0x56a9fe
mov eax, dword [ebx + 0x18]
cmp eax, esi
setne dl
mov byte [esp + 0x88], dl
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x108]
mov edx, dword [eax + 0x3374]
test edx, edx
je 0x56ab47
cmp ebp, ecx
jge 0x56ab47
test ebp, ebp
jg 0x56aa33
xor ebp, ebp
jmp 0x56aa42
mov eax, dword [ebx + 4]
test eax, eax
je 0x56aa3f
mov ebp, dword [eax + ebp*4]
jmp 0x56aa42
mov ebp, dword [ebx + 0x18]
test ebp, ebp
setne al
test al, al
je 0x56ab47
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x2d70]
mov ebp, dword [esp + 0x118]
imul eax, edx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x50]
sub ecx, ecx
mov edx, dword [esi]
add ecx, ebp
add eax, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], 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 + 0x3368], al
je 0x56ab2b
mov edx, ecx
test byte [edx + 0x336c], al
je 0x56aae2
mov eax, dword [esp + 0x80]
mov ecx, dword [edi + 0x2d70]
sub eax, ecx
mov dword [esp + 0x78], eax
jmp 0x56aaf5
mov eax, dword [edi + 0x2d70]
mov ecx, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x2da0]
mov edx, dword [esp + 0x78]
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 + 0x9c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x30]
call fcn.0056a400
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3374]
imul edx, dword [edi + 0x2d70]
add ebp, edx
mov dword [esp + 0x118], ebp
jmp 0x56ab4e
mov ebp, dword [esp + 0x118]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov cl, byte [edx + 0x31d6]
test cl, cl
je 0x56ae70
lea ecx, [eax*4 + 4]
mov dword [esp + 0x40], ecx
mov ecx, 1
sub ecx, dword [esp + 0x64]
mov dword [esp + 0x6c], ecx
cmp eax, dword [esp + 0x44]
jge 0x56ae70
mov edx, dword [ebx + 0x3c]
lea ecx, [edx + eax]
mov dl, byte [edx + eax]
cmp dl, byte [ecx + 1]
mov byte [esp + 0x60], dl
jne 0x56abec
mov ecx, dword [esp + 0x44]
dec ecx
cmp eax, ecx
je 0x56abec
mov edx, dword [ebx + 0x38]
lea ecx, [edx + eax]
movsx edx, byte [edx + eax]
test edx, edx
jl 0x56abb8
cmp edx, 0x20
jl 0x56abec
movsx ecx, byte [ecx + 1]
test ecx, ecx
jl 0x56abc5
cmp ecx, 0x20
jl 0x56abec
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
cmp edx, ecx
je 0x56abe0
mov ecx, dword [esp + 0x64]
lea ecx, [eax + ecx + 1]
cmp ecx, edx
je 0x56abec
cmp ecx, dword [ebx + 0x2c]
je 0x56abec
mov edx, dword [ebx + 0x34]
dec edx
cmp eax, edx
jne 0x56ae4e
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x50]
shl eax, 2
mov eax, dword [ecx + eax]
sub eax, edx
mov edx, dword [esp + 0x40]
add eax, ebp
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x1c], eax
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x56ae36
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x11c]
cmp eax, ecx
jl 0x56ae36
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x28]
and eax, 0xff
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
add eax, edx
cmp eax, ecx
jl 0x56ac68
mov edx, dword [ebx + 0x2c]
cmp eax, edx
jge 0x56ac68
cmp ecx, edx
mov byte [esp + 0x3c], 1
jne 0x56ac6d
mov byte [esp + 0x3c], 0
mov ecx, dword [ebx + 0x4c]
cmp ecx, 0xffffffff
je 0x56ac85
cmp eax, ecx
jl 0x56ac85
mov ecx, dword [ebx + 0x50]
mov byte [esp + 0x34], 1
cmp eax, ecx
jl 0x56ac8a
mov byte [esp + 0x34], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x34]
push ebx
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
lea ecx, [esp + 0xa8]
push edi
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0056a2b0
mov edx, dword [ebx + 0x38]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
mov cl, byte [ecx + edx]
cmp cl, 9
jne 0x56ad18
mov cl, byte [esp + 0x1b]
test cl, cl
je 0x56aceb
mov cl, byte [esp + 0x13]
test cl, cl
je 0x56ace5
cmp dword [edi + 0x2e3c], 1
jne 0x56aceb
mov eax, dword [edi + 0x2dac]
mov ecx, dword [esp + 0x1c]
push eax
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
jmp 0x56ae36
movsx ecx, cl
test ecx, ecx
jl 0x56ad2b
cmp ecx, 0x20
jge 0x56ad2b
mov byte [esp + 0x13], 0
jmp 0x56aceb
mov ecx, dword [esp + 0x1c]
push eax
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x56ad77
mov al, byte [esp + 0x13]
test al, al
je 0x56ae36
mov al, byte [edi + 0x2e40]
test al, al
je 0x56ae36
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x48], eax
js 0x56ae36
lea eax, [edx*4]
mov dword [esp + 0x30], eax
jmp 0x56ada2
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + 0x38]
add edx, ecx
cmp byte [edx + eax], 0x20
jne 0x56ae15
mov al, byte [esp + 0x1b]
test al, al
je 0x56ae1a
mov al, byte [esp + 0x13]
test al, al
je 0x56adc6
cmp dword [edi + 0x2e3c], 1
jne 0x56ae1a
mov eax, dword [ebx + 0x44]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + edx]
mov edx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [ebx + 0x44]
add eax, ebp
mov ecx, dword [ecx + edx*4 + 4]
mov edx, dword [esi]
add ecx, ebp
mov ebp, dword [edi + 0x2dac]
push ebp
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 ebp, dword [esp + 0x118]
mov ecx, dword [esp + 0x68]
jmp 0x56ae1a
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
inc ecx
add edx, 4
cmp ecx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x30], edx
jle 0x56ad9e
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
add eax, edx
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
inc eax
add edx, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 0x31d6]
test cl, cl
jne 0x56ab80
mov al, byte [edx + 0x31d6]
test al, al
je 0x56aee6
mov ecx, dword [edi + 0x2da0]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x124]
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x13c]
push edx
push ebx
mov edx, dword [esp + 0x148]
sub esp, 0x10
mov eax, esp
push edi
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x164]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x168]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
call fcn.0056a570
mov ecx, dword [esp + 0x130]
mov al, byte [esp + 0x56]
test ecx, ecx
mov byte [esp + 0x13], al
jg 0x56af03
mov dword [esp + 0x38], 0
jmp 0x56af1f
cmp ecx, dword [ebx + 0x58]
jge 0x56af18
mov eax, dword [ebx + 4]
test eax, eax
je 0x56af18
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x38], ecx
jmp 0x56af1f
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
cmp edx, eax
mov dword [esp + 0x2c], edx
jge 0x56b8b8
mov eax, dword [esp + 0x64]
lea ecx, [edx + eax]
mov eax, dword [ebx + 0x3c]
add eax, edx
mov dword [esp + 0x34], ecx
mov cl, byte [eax]
cmp cl, byte [eax + 1]
mov byte [esp + 0x60], cl
jne 0x56af99
mov ecx, dword [esp + 0x44]
dec ecx
cmp edx, ecx
je 0x56af99
mov eax, dword [ebx + 0x38]
add eax, edx
movsx ecx, byte [eax]
test ecx, ecx
jl 0x56af68
cmp ecx, 0x20
jl 0x56af99
movsx eax, byte [eax + 1]
test eax, eax
jl 0x56af75
cmp eax, 0x20
jl 0x56af99
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
cmp eax, ecx
je 0x56af8d
mov ecx, dword [esp + 0x34]
inc ecx
cmp ecx, eax
je 0x56af99
cmp ecx, dword [ebx + 0x2c]
je 0x56af99
mov eax, dword [ebx + 0x34]
dec eax
cmp edx, eax
jne 0x56b8a7
mov ecx, dword [esp + 0x38]
lea eax, [ecx*4]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx + eax]
mov ecx, dword [ecx + edx*4 + 4]
sub eax, dword [esp + 0x50]
add eax, ebp
inc edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
sub ecx, edx
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x56b89a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x11c]
cmp edx, eax
jl 0x56b89a
mov eax, dword [esp + 0x60]
and eax, 0xff
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, edi
mov dword [esp + 0x70], ecx
mov edx, dword [ecx + 0x208]
lea ecx, [eax + eax*4 + 0x23]
shl ecx, 4
add ecx, edi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x4c]
cmp ecx, 0xffffffff
je 0x56b043
cmp edx, ecx
jl 0x56b043
mov ecx, dword [esp + 0x14]
cmp edx, dword [ecx + 0x3350]
jge 0x56b043
mov cl, byte [edi + 0x2dd8]
test cl, cl
je 0x56b043
mov ecx, dword [edi + 0x2de0]
mov dword [esp + 0x3c], ecx
cmp edx, dword [ebx + 0x28]
jl 0x56b112
mov ecx, dword [ebx + 0x2c]
cmp edx, ecx
jge 0x56b112
cmp dword [ebx + 0x28], ecx
je 0x56b10e
mov cl, byte [edi + 0x2d78]
mov byte [esp + 0x6c], 1
test cl, cl
je 0x56b079
mov edx, dword [edi + 0x2d80]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx + 0x4c]
cmp ecx, 0xffffffff
je 0x56b095
cmp edx, ecx
jl 0x56b095
mov ecx, dword [ebx + 0x50]
mov byte [esp + 0x68], 1
cmp edx, ecx
jl 0x56b09a
mov byte [esp + 0x68], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
push ebx
push ecx
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x10c]
push edi
push eax
call fcn.0056a2b0
mov ecx, dword [eax]
mov eax, dword [ebx + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov al, byte [eax + edx]
cmp al, 9
jne 0x56b2cc
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x31d6]
test cl, cl
jne 0x56b148
mov al, byte [esp + 0x1b]
test al, al
je 0x56b11c
mov al, byte [esp + 0x13]
test al, al
je 0x56b106
cmp dword [edi + 0x2e3c], 1
jne 0x56b11c
mov eax, dword [edi + 0x2dac]
jmp 0x56b120
mov edx, dword [esp + 0x34]
mov byte [esp + 0x6c], 0
jmp 0x56b07d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push eax
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x56b168
mov al, byte [esp + 0x13]
test al, al
je 0x56b242
mov al, byte [edi + 0x2e40]
test al, al
je 0x56b188
mov al, byte [edi + 0x2d98]
test al, al
je 0x56b17c
mov edx, dword [edi + 0x2da0]
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov al, byte [esp + 0x13]
test al, al
je 0x56b242
mov al, byte [edi + 0x2e40]
test al, al
je 0x56b242
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + edx*4]
cdq
idiv dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x74]
imul ebp, eax
inc edx
cmp ebp, dword [ecx + edx*4]
jge 0x56b242
mov edx, dword [esp + 0x118]
add edx, ebp
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
cmp ebp, dword [ecx + edx*4]
jl 0x56b229
test ebp, ebp
jle 0x56b229
mov edx, dword [ebx + 0x20]
cmp edx, ebp
mov edx, dword [esp + 0x1c]
sete al
push eax
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov edx, dword [edi + 0x2d64]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push esi
call fcn.0056a380
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add ecx, eax
add ebp, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x44]
inc edx
cmp ebp, dword [ecx + edx*4]
jl 0x56b1d1
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x56b7ae
mov cl, byte [esp + 0x13]
test cl, cl
je 0x56b261
cmp eax, 1
jne 0x56b7ae
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add ecx, 4
lea ebp, [eax + 1]
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 + 0xc4]
push eax
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00569990
add esp, 0x18
jmp 0x56b7ae
movsx ecx, al
test ecx, ecx
jl 0x56b4c3
cmp ecx, 0x20
jge 0x56b4c3
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
cmp dword [ecx + 0x31c8], 0x20
jge 0x56b463
push eax
call fcn.00566c00
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
add esp, 4
mov al, byte [edx + 0x31d6]
test al, al
jne 0x56b33d
mov ecx, dword [esp + 0x40]
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 + 0xb4], ecx
mov ecx, dword [edi + 0x2d68]
mov edx, dword [esp + 0x28]
sub eax, ebp
mov ebp, ecx
mov dword [esp + 0xb0], ebx
sub ebp, eax
mov eax, dword [esp + 0x20]
add ebp, eax
mov dword [esp + 0xbc], edx
lea eax, [ecx + eax + 1]
inc ebx
mov dword [esp + 0xbc], eax
dec eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [ebp + 1]
mov dword [esp + 0xa8], ebp
sub esp, 0x10
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0xb8]
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 + 0xc0]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], ebx
inc ebx
push ecx
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x4c]
dec eax
push edx
mov dword [esp + 0x84], ebp
mov ebp, dword [esi]
push ebx
mov dword [esp + 0x8c], eax
call fcn.00569970
add esp, 4
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [edi + 0x2d68]
push ebx
mov ebx, dword [esp + 0x30]
add eax, ebx
push eax
lea eax, [edi + 0xd70]
push eax
mov eax, dword [esp + 0x94]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xa8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [ebp + 0x4c]
mov ebx, dword [esp + 0x12c]
jmp 0x56b7ae
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esi]
mov byte [esp + 0x57], 0
mov cl, byte [eax + 0x31c8]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x56], cl
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x5e]
push 1
push eax
mov eax, dword [edi + 0x2d68]
add eax, ecx
push eax
lea eax, [edi + 0xd70]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
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 0x56b7ae
mov edx, dword [esp + 0x70]
mov al, byte [edx + 0x22c]
test al, al
je 0x56b588
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov cl, byte [eax + 0x31d6]
test cl, cl
je 0x56b535
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebx + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x54]
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 0x56b588
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebx + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x58]
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 0x56b5ac
mov al, byte [esp + 0x13]
test al, al
je 0x56b7ae
mov al, byte [edi + 0x2e40]
test al, al
je 0x56b7ae
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], ecx
js 0x56b7ae
lea ecx, [eax*4]
mov dword [esp + 0x30], ecx
jmp 0x56b5d9
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
add edx, eax
mov eax, dword [ebx + 0x38]
cmp byte [edx + eax], 0x20
jne 0x56b789
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x56b719
mov cl, byte [edi + 0x2d98]
test cl, cl
je 0x56b60e
mov ecx, dword [edi + 0x2da0]
mov dword [esp + 0x3c], ecx
mov cl, byte [esp + 0x13]
test cl, cl
je 0x56b61f
cmp eax, 1
jne 0x56b719
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov eax, dword [ebx + 0x44]
add edx, ecx
mov ecx, dword [eax + edx*4 + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + edx]
mov dword [esp + 0x8c], eax
add eax, ecx
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x14]
sar ebp, 1
mov dl, byte [eax + 0x31d6]
test dl, dl
jne 0x56b6b4
mov al, byte [esp + 0x1b]
test al, al
je 0x56b6b4
mov al, byte [esp + 0x13]
test al, al
je 0x56b66e
cmp dword [edi + 0x2e3c], 1
jne 0x56b6b4
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x8c]
add ecx, edx
add eax, edx
mov dword [esp + 0xfc], ecx
mov ecx, dword [edi + 0x2dac]
push ecx
mov edx, dword [esi]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x110]
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 [esp + 0x50]
mov edx, dword [esp + 0x118]
sub ebp, eax
mov eax, dword [edi + 0x2d64]
add ebp, edx
cdq
lea ecx, [ebp + 1]
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x3c]
push ecx
sub esp, 0x10
mov ecx, esp
sar eax, 1
add eax, edx
mov dword [ecx], ebp
lea edx, [eax + 1]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0xf0], edx
mov edx, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xf0]
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 0x56b78e
mov al, byte [edi + 0x2e40]
test al, al
je 0x56b78e
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + ecx]
test ecx, ecx
jle 0x56b78e
mov eax, ecx
cdq
idiv dword [esp + 0x74]
test edx, edx
jne 0x56b78e
cmp dword [ebx + 0x20], ecx
sete al
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
add ecx, ebp
mov edx, esp
push ecx
mov ecx, dword [edi + 0x2d64]
mov dword [edx], eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x130]
push edx
push esi
call fcn.0056a380
jmp 0x56b78e
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
jle 0x56b5d5
mov eax, dword [ebx + 0x4c]
cmp eax, 0xffffffff
je 0x56b82f
mov cl, byte [edi + 0x2df0]
test cl, cl
je 0x56b82f
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jl 0x56b82f
cmp ecx, dword [ebx + 0x50]
jge 0x56b82f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x9c], edx
mov edx, dword [edi + 0x2d68]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx + eax + 1]
lea edx, [eax + 1]
mov dword [esp + 0x9c], edx
mov dl, byte [edi + 0x2dd8]
test dl, dl
mov edx, dword [esi]
je 0x56b80f
mov ebp, dword [edi + 0x2de0]
jmp 0x56b813
mov ebp, dword [esp + 0x3c]
push ebp
sub esp, 0x10
mov ebp, esp
mov dword [ebp], ecx
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0xb0]
jmp 0x56b88b
mov ecx, dword [esp + 0x70]
mov al, byte [ecx + 0x225]
test al, al
je 0x56b893
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebp
mov dword [esp + 0xf0], edx
mov edx, dword [edi + 0x2d68]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0xf8], eax
lea eax, [edx + eax + 1]
mov dword [ebp], ecx
lea edx, [eax + 1]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x100], edx
mov edx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x100]
mov ecx, esi
mov dword [ebp + 0xc], eax
call dword [edx + 0x38]
mov ebp, dword [esp + 0x118]
mov ecx, dword [esp + 0x2c]
mov edx, ecx
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
inc edx
cmp edx, eax
mov dword [esp + 0x2c], edx
jl 0x56af33
mov edx, dword [esp + 0x14]
mov eax, 1
mov ecx, dword [edx + 0x3378]
mov ecx, dword [ecx + 0x498]
shl eax, cl
cmp eax, 0x100
mov dword [esp + 0x30], eax
jge 0x56b9e8
lea edx, [edi + 0x2d04]
mov dword [esp + 0x60], edx
mov ecx, dword [esp + 0x58]
or eax, 0xffffffff
mov edx, ecx
mov dword [esp + 0x48], eax
cmp edx, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
jg 0x56b9c8
test eax, eax
jge 0x56b92e
cmp ecx, dword [esp + 0x44]
jge 0x56b926
mov edx, dword [ebx + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x30]
test edx, ecx
mov ecx, dword [esp + 0x34]
je 0x56b926
mov eax, ecx
mov dword [esp + 0x48], eax
test eax, eax
jl 0x56b9b7
cmp ecx, dword [esp + 0x44]
jge 0x56b943
mov edx, dword [ebx + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x30]
test edx, ecx
jne 0x56b9b3
mov ecx, dword [ebx + 0x44]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + eax*4]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ebp
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [edi + 0x2d68]
add ecx, ebp
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x120]
add ecx, edx
lea edx, [esp + 0x11c]
mov dword [esp + 0x94], ecx
add ecx, 3
lea eax, [esp + 0x90]
push edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x64]
push eax
push esi
call fcn.005c0ae0
or eax, 0xffffffff
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
jle 0x56b903
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
shl eax, 1
add edx, 0xc
cmp eax, 0x100
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], edx
jl 0x56b8e8
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x31d6]
test al, al
jne 0x56ba62
mov edx, dword [edi + 0x2da0]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x13c]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x124]
push ecx
push ebp
push edx
mov edx, dword [esp + 0x13c]
push eax
push ebx
mov eax, dword [esp + 0x148]
sub esp, 0x10
mov ecx, esp
push edi
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x164]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x168]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x54]
call fcn.0056a570
cmp dword [edi + 0x2e60], 1
jne 0x56baa7
mov ecx, dword [esp + 0x14]
mov ebx, dword [edi + 0x2e5c]
push ebx
mov edx, dword [esi]
mov eax, dword [ecx + 0x32c0]
sub esp, 0x10
imul eax, dword [edi + 0x2d74]
add eax, ebp
mov ebx, esp
lea ecx, [eax + 1]
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]
cmp dword [edi + 0x2e6c], 1
jne 0x56baf4
mov edi, dword [edi + 0x2e74]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push edi
sub esp, 0x10
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x13c]
mov edi, esp
mov ebp, dword [esi]
lea ebx, [edx - 1]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov ecx, esi
mov dword [edi + 0xc], edx
call dword [ebp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x2c