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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x18c
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
mov ebx, eax
mov eax, dword [esp + 0x1b8]
lea edi, [esp + 0x88]
xor edx, edx
mov dword [esp + 0x68], edx
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x50], edx
xor edx, edx
mov dword [esp + 0x5c], edx
xor edx, edx
mov dword [esp + 0x60], edx
mov edx, dword [ebx + 0xdc]
mov dword [esp + 0x84], edx
lea edx, [edx + 0x80]
mov dword [esp + 0x64], edx
mov esi, ebx
mov ecx, 0x38
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1ac]
mov dword [0x102dcee8], 0x1005fb30
xor ecx, ecx
lea edx, [edi + edi]
mov dword [esp + 0x78], ecx
mov edi, eax
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0x38], ebp
lea edx, [edx + edx]
mov dword [esp + 0x70], edx
and edi, 0x200
mov ecx, eax
mov dword [esp + 0x48], edi
and ecx, 0x2000
mov dword [esp + 0x4c], ecx
mov edx, eax
and edx, 0x800
xor esi, esi
mov dword [esp + 0x80], edx
xor edx, edx
mov dword [esp + 0x6c], edx
mov dl, 5
mov byte [esp + 0x7c], dl
mov ebp, esi
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x78]
mov edx, dword [ebx + 0x24]
lea eax, [edx + eax + 4]
mov esi, edi
and esi, 1
mov dword [esp + 0xac], eax
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ebp + 8]
sar edi, 1
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x20]
lea eax, [eax + ebp + 8]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x58]
imul eax, edi
add eax, esi
add eax, eax
add eax, eax
add eax, eax
add eax, dword [ebx + 0x4c]
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 0x58]
imul eax, edi
add eax, esi
add eax, eax
add eax, eax
add eax, eax
add eax, dword [ebx + 0x28]
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x58]
imul eax, edi
add eax, esi
add eax, eax
add eax, eax
add eax, eax
add eax, dword [ebx + 0x2c]
mov dword [esp + 0xb4], eax
mov ecx, dword [ebx + 0x58]
imul ecx, edi
add ecx, esi
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, dword [ebx + 0x30]
mov dword [esp + 0xb8], ecx
mov edx, dword [ebx + 0x58]
imul edx, edi
add edx, esi
add edx, edx
add edx, edx
add edx, edx
add edx, dword [ebx + 0x34]
mov dword [esp + 0xbc], edx
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1005e453
mov eax, dword [esp + 0x1ac]
mov edx, dword [esp + 0x1b4]
mov edx, dword [edx + 0x10]
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, dword [esp + 0x1b0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
call fcn.1005f808
mov dword [esp + 0x174], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x170], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x1005e37d
mov eax, dword [esp + 0xe4]
add eax, 0xffffffff
mov dword [esp + 0x24], eax
jmp 0x1005e58e
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
sub eax, dword [esp + 0x9c]
mov dword [esp + 0x44], edi
mov edi, dword [ecx + 4]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x30], ecx
sub edi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x44]
lea edx, [ecx - 1]
test eax, eax
mov dword [esp + 0x24], edx
je 0x1005e3f1
mov ecx, edx
mov dword [esp + 0x44], edi
cdq
xor eax, edx
sub eax, edx
mov edx, 1
shl edx, cl
lea eax, [edx + eax - 1]
sar eax, cl
mov edx, 0x20
cmp eax, 0x20
jle 0x1005e3dc
mov eax, edx
mov edi, dword [eax*4 + 0x1008b680]
add edi, dword [esp + 0x30]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x44]
jmp 0x1005e3fa
mov eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1005e43d
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x30]
cdq
xor eax, edx
sub eax, edx
mov edx, 1
shl edx, cl
lea eax, [edx + eax - 1]
sar eax, cl
mov edx, 0x20
cmp eax, 0x20
jle 0x1005e42c
mov eax, edx
add edi, dword [eax*4 + 0x1008b680]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x44]
jmp 0x1005e446
mov eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x50], eax
jmp 0x1005e58e
mov eax, dword [esp + 0x1ac]
mov edx, dword [esp + 0x1b4]
mov edx, dword [edx + 0x10]
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, dword [esp + 0x1b0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
call fcn.1005f4f4
mov dword [esp + 0x16c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x168], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x1005e4bd
mov eax, dword [esp + 0xe4]
add eax, 0xffffffff
mov dword [esp + 0x24], eax
jmp 0x1005e58e
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
sub eax, dword [esp + 0x9c]
mov dword [esp + 0x44], edi
mov edi, dword [ecx + 4]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x30], ecx
sub edi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x44]
lea edx, [ecx - 1]
test eax, eax
mov dword [esp + 0x24], edx
je 0x1005e531
mov ecx, edx
mov dword [esp + 0x44], edi
cdq
xor eax, edx
sub eax, edx
mov edx, 1
shl edx, cl
lea eax, [edx + eax - 1]
sar eax, cl
mov edx, 0x20
cmp eax, 0x20
jle 0x1005e51c
mov eax, edx
mov edi, dword [eax*4 + 0x1008b680]
add edi, dword [esp + 0x30]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x44]
jmp 0x1005e53a
mov eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1005e57d
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x30]
cdq
xor eax, edx
sub eax, edx
mov edx, 1
shl edx, cl
lea eax, [edx + eax - 1]
sar eax, cl
mov edx, 0x20
cmp eax, 0x20
jle 0x1005e56c
mov eax, edx
add edi, dword [eax*4 + 0x1008b680]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x44]
jmp 0x1005e586
mov eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x50], eax
add esi, dword [esp + 0x74]
add edi, dword [esp + 0x70]
mov eax, dword [esp + 0x1b4]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0xec]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x1005e5b8
mov eax, 4
jmp 0x1005e5bd
mov eax, 2
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov ebp, 0x20
shl ebp, cl
lea ebx, [ebp - 1]
neg ebp
mov dword [esp + 0x40], ebp
lea ebp, [esi + esi]
add ebp, ebp
lea ecx, [ebp + ebp]
mov dword [esp + 0x30], ecx
sub edx, ecx
imul edx, eax
cmp edx, ebx
jl 0x1005e5f1
mov edx, ebx
mov dword [esp + 0x88], edx
lea edx, [edi + edi]
add edx, edx
mov dword [esp + 0x3c], edx
lea ecx, [edx + edx]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
sub edx, ecx
imul edx, eax
lea ecx, [ebp + esi*4 + 8]
neg ecx
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
cmp edx, ebx
jl 0x1005e629
mov edx, ebx
mov ebx, dword [esp + 0x20]
imul ecx, eax
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x40]
cmp ecx, edx
jg 0x1005e641
mov ecx, edx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x3c]
lea edi, [ecx + edi*4 + 8]
neg edi
imul eax, edi
cmp eax, edx
jle 0x1005e65b
mov edx, eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x94], edx
add dword [eax], esi
mov edx, dword [esp + 0xec]
mov dword [esp + 0xf0], edx
test edx, edx
je 0x1005e6e9
mov eax, dword [esp + 0x1bc]
mov ecx, dword [esp + 0xa8]
mov eax, dword [eax + ebp + 8]
cmp eax, dword [ecx]
je 0x1005e6a4
mov ecx, dword [esp + 0x1bc]
mov edx, dword [ecx + ebp + 0xc]
mov dword [esp + 0x24], edx
jmp 0x1005e6bc
mov esi, dword [esp + 0x1bc]
mov esi, dword [esi + ebp + 0xc]
cmp esi, dword [ecx + 4]
mov dword [esp + 0x24], esi
je 0x1005e74f
lea edx, [esp + 0x178]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x88]
mov ecx, 0xff
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
call fcn.1005fb3c
mov edx, dword [esp + 0xec]
jmp 0x1005e74f
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x1bc]
mov eax, dword [eax + ebp + 8]
cmp eax, dword [ecx]
je 0x1005e710
mov ecx, dword [esp + 0x1bc]
mov edx, dword [ecx + ebp + 0xc]
mov dword [esp + 0x24], edx
jmp 0x1005e724
mov esi, dword [esp + 0x1bc]
mov esi, dword [esi + ebp + 0xc]
cmp esi, dword [ecx + 4]
mov dword [esp + 0x24], esi
je 0x1005e74f
lea edx, [esp + 0x178]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x88]
mov ecx, 0xff
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
call fcn.1005fb3c
mov edx, dword [esp + 0xec]
test edx, edx
je 0x1005eda3
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1005e771
mov eax, dword [esp + 0x1b8]
and eax, 0x8001000
mov dword [esp + 0x24], eax
jmp 0x1005e78c
mov eax, dword [esp + 0x1b8]
and eax, 0x8001000
mov dword [esp + 0x24], eax
cmp eax, 0x8001000
jne 0x1005ec54
mov eax, dword [esp + 0xac]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa8]
mov edx, dword [eax]
mov eax, dword [esp + 0xa4]
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
mov dword [eax], edx
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 4]
add edx, 0x80000000
adc edx, 0x80000000
mov eax, dword [esp + 0xa4]
sar edx, 1
mov dword [eax + 4], edx
mov eax, dword [esp + 0x1b4]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0xf0], 0
mov esi, dword [eax]
sub esi, dword [esp + 0x30]
mov edx, dword [eax + 4]
mov eax, 0x20
add ecx, 0xfffffffe
sub edx, dword [esp + 0x2c]
shl eax, cl
add esi, esi
add edx, edx
lea ecx, [eax - 1]
neg eax
cmp esi, ecx
jl 0x1005e81a
mov esi, ecx
cmp edx, ecx
mov dword [esp + 0x88], esi
jl 0x1005e827
mov edx, ecx
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x28]
lea edx, [edx + edx]
cmp edx, eax
jg 0x1005e83b
mov edx, eax
mov dword [esp + 0x8c], edx
lea edx, [edi + edi]
cmp edx, eax
jle 0x1005e84b
mov eax, edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x94], eax
mov eax, dword [edx]
or eax, dword [edx + 4]
test al, 1
je 0x1005e88e
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x178]
mov dword [esp + 0xc], eax
mov ecx, 0xff
lea eax, [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
call fcn.1005fb3c
mov eax, dword [esp + 0x24]
cmp eax, 0x8001000
jne 0x1005ea4a
mov eax, dword [esp + 0xa4]
mov edx, dword [eax]
mov dword [esp + 0x18], edi
mov eax, edx
mov esi, 0xff
mov dword [esp + 0x1c], ebp
mov ebp, edx
mov dword [esp + 0x20], ebx
mov ebx, eax
mov dword [esp + 0x180], 0
test esi, 1
je 0x1005e8f0
lea edi, [esp + 0x180]
lea eax, [esp + 0x88]
push eax
lea ecx, [ebp - 2]
push edi
push 0x51
push ebx
push ecx
call dword [0x102dcee8]
add esp, 0x14
test esi, 2
je 0x1005e91b
lea edi, [esp + 0x180]
lea eax, [esp + 0x88]
push eax
lea ecx, [ebp + 2]
push edi
push 0xa2
push ebx
push ecx
call dword [0x102dcee8]
add esp, 0x14
test esi, 4
je 0x1005e943
lea edi, [esp + 0x180]
lea eax, [esp + 0x88]
push eax
lea ecx, [ebx - 2]
push edi
push 0x34
push ecx
push ebp
call dword [0x102dcee8]
add esp, 0x14
test esi, 8
je 0x1005e96e
lea edi, [esp + 0x180]
lea eax, [esp + 0x88]
push eax
lea ecx, [ebx + 2]
push edi
push 0xc8
push ecx
push ebp
call dword [0x102dcee8]
add esp, 0x14
test esi, 0x10
je 0x1005e999
lea eax, [esp + 0x180]
lea edx, [esp + 0x88]
push edx
lea ecx, [ebp - 2]
lea edi, [ebx - 2]
push eax
push 0x75
push edi
push ecx
call dword [0x102dcee8]
add esp, 0x14
test esi, 0x20
je 0x1005e9c7
lea eax, [esp + 0x180]
lea edx, [esp + 0x88]
push edx
lea ecx, [ebp + 2]
lea edi, [ebx - 2]
push eax
push 0xb6
push edi
push ecx
call dword [0x102dcee8]
add esp, 0x14
test esi, 0x40
je 0x1005e9f5
lea eax, [esp + 0x180]
lea edx, [esp + 0x88]
push edx
lea ecx, [ebp - 2]
lea edi, [ebx + 2]
push eax
push 0xd9
push edi
push ecx
call dword [0x102dcee8]
add esp, 0x14
test esi, 0x80
je 0x1005ea23
lea ecx, [esp + 0x180]
lea esi, [esp + 0x88]
push esi
add ebp, 2
add ebx, 2
push ecx
push 0xea
push ebx
push ebp
call dword [0x102dcee8]
add esp, 0x14
mov esi, dword [esp + 0x180]
mov eax, dword [esp + 0xa4]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
test esi, esi
jne 0x1005e8bd
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1005eb9e
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x1005ea73
mov edx, dword [esp + 0xa8]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x40], eax
jmp 0x1005ea83
mov edx, dword [esp + 0xa4]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x40], eax
lea edx, [esp + 0x184]
lea ecx, [esp + 0x88]
lea eax, [eax - 1]
mov dword [esp + 0x44], eax
push ecx
push edx
push 0
push eax
push esi
call dword [0x102dcee8]
lea ecx, [esp + 0x198]
lea edx, [esp + 0x9c]
lea eax, [esi + 1]
mov dword [esp + 0x50], eax
push edx
push ecx
push 0
mov edx, dword [esp + 0x64]
push edx
push eax
call dword [0x102dcee8]
lea ecx, [esp + 0x1ac]
lea eax, [esp + 0xb0]
push eax
push ecx
push 0
mov edx, dword [esp + 0x74]
push edx
mov eax, dword [esp + 0x74]
push eax
call dword [0x102dcee8]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x1c0]
lea edx, [eax + 1]
mov dword [esp + 0x60], edx
lea eax, [esp + 0xc4]
push eax
push ecx
push 0
push edx
mov eax, dword [esp + 0x88]
push eax
call dword [0x102dcee8]
lea edx, [esp + 0x1d4]
lea ecx, [esp + 0xd8]
push ecx
push edx
push 0
mov eax, dword [esp + 0x80]
push eax
push esi
call dword [0x102dcee8]
lea edx, [esp + 0x1e8]
lea ecx, [esp + 0xec]
push ecx
add esi, 0xffffffff
push edx
push 0
mov eax, dword [esp + 0x94]
push eax
push esi
call dword [0x102dcee8]
add esp, 0x78
lea edx, [esp + 0x184]
lea ecx, [esp + 0x88]
push ecx
push edx
push 0
mov eax, dword [esp + 0x4c]
push eax
push esi
call dword [0x102dcee8]
lea edx, [esp + 0x198]
lea ecx, [esp + 0x9c]
push ecx
push edx
push 0
mov eax, dword [esp + 0x64]
push eax
push esi
call dword [0x102dcee8]
add esp, 0x28
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x34]
cmp edx, dword [eax]
jle 0x1005ebd7
mov eax, dword [esp + 0xa4]
mov edx, dword [eax]
mov eax, dword [esp + 0xa8]
add edx, edx
mov dword [eax], edx
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov edx, dword [ecx + 4]
add edx, edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x1b4]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0xf0], 1
mov esi, dword [eax]
sub esi, dword [esp + 0x30]
mov edx, dword [eax + 4]
mov eax, 0x20
add ecx, 0xffffffff
sub edx, dword [esp + 0x2c]
shl eax, cl
add esi, esi
add esi, esi
lea ecx, [eax - 1]
neg eax
cmp esi, ecx
jl 0x1005ec16
mov esi, ecx
add edx, edx
mov dword [esp + 0x88], esi
add edx, edx
cmp edx, ecx
jl 0x1005ec27
mov edx, ecx
mov dword [esp + 0x90], edx
add edi, edi
add edi, edi
mov edx, dword [esp + 0x28]
add edx, edx
add edx, edx
cmp edx, eax
jg 0x1005ec40
mov edx, eax
mov dword [esp + 0x8c], edx
cmp edi, eax
jg 0x1005ec4d
mov edi, eax
mov dword [esp + 0x94], edi
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1005eee4
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x1005ec80
mov edx, dword [esp + 0xa8]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], eax
jmp 0x1005ec90
mov edx, dword [esp + 0xa4]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], eax
mov edi, eax
lea edx, [esp + 0x188]
lea ecx, [esp + 0x88]
lea eax, [edi - 1]
mov dword [esp + 0x2c], eax
push ecx
push edx
push 0
push eax
push esi
call dword [0x102dcee8]
lea edx, [esp + 0x19c]
lea ecx, [esp + 0x9c]
push ecx
lea edi, [esi + 1]
push edx
push 0
mov eax, dword [esp + 0x4c]
push eax
push edi
call dword [0x102dcee8]
lea edx, [esp + 0x1b0]
lea ecx, [esp + 0xb0]
push ecx
push edx
push 0
mov eax, dword [esp + 0x64]
push eax
push edi
call dword [0x102dcee8]
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x1c4]
lea ecx, [esp + 0xc4]
lea eax, [eax + 1]
mov dword [esp + 0x64], eax
push ecx
push edx
push 0
push eax
push edi
call dword [0x102dcee8]
lea edx, [esp + 0x1d8]
lea ecx, [esp + 0xd8]
push ecx
push edx
push 0
mov eax, dword [esp + 0x84]
push eax
push esi
call dword [0x102dcee8]
lea edx, [esp + 0x1ec]
lea ecx, [esp + 0xec]
push ecx
add esi, 0xffffffff
push edx
push 0
mov eax, dword [esp + 0x98]
push eax
push esi
call dword [0x102dcee8]
add esp, 0x78
lea edx, [esp + 0x188]
lea ecx, [esp + 0x88]
push ecx
push edx
push 0
mov eax, dword [esp + 0x3c]
push eax
push esi
call dword [0x102dcee8]
lea edx, [esp + 0x19c]
lea ecx, [esp + 0x9c]
push ecx
push edx
push 0
mov eax, dword [esp + 0x4c]
push eax
push esi
call dword [0x102dcee8]
add esp, 0x28
jmp 0x1005eee4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1005eee4
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x1005edcc
mov edx, dword [esp + 0xa8]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], eax
jmp 0x1005eddc
mov edx, dword [esp + 0xa4]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], eax
mov edi, eax
lea edx, [esp + 0x17c]
lea ecx, [esp + 0x88]
lea eax, [edi - 1]
mov dword [esp + 0x2c], eax
push ecx
push edx
push 0
push eax
push esi
call dword [0x102dcee8]
lea ecx, [esp + 0x190]
lea edi, [esp + 0x9c]
lea eax, [esi + 1]
mov dword [esp + 0x3c], eax
push edi
push ecx
push 0
mov edx, dword [esp + 0x4c]
push edx
push eax
call dword [0x102dcee8]
lea ecx, [esp + 0x1a4]
lea edi, [esp + 0xb0]
push edi
push ecx
push 0
mov edx, dword [esp + 0x64]
push edx
mov eax, dword [esp + 0x60]
push eax
call dword [0x102dcee8]
mov edi, dword [esp + 0x6c]
lea edx, [esp + 0x1b8]
lea ecx, [esp + 0xc4]
push ecx
lea edi, [edi + 1]
push edx
push 0
push edi
mov eax, dword [esp + 0x74]
push eax
call dword [0x102dcee8]
lea eax, [esp + 0x1cc]
lea edx, [esp + 0xd8]
push edx
push eax
push 0
push edi
push esi
call dword [0x102dcee8]
lea eax, [esp + 0x1e0]
lea edx, [esp + 0xec]
push edx
add esi, 0xffffffff
push eax
push 0
push edi
push esi
call dword [0x102dcee8]
add esp, 0x78
lea edx, [esp + 0x17c]
lea ecx, [esp + 0x88]
push ecx
push edx
push 0
mov eax, dword [esp + 0x3c]
push eax
push esi
call dword [0x102dcee8]
lea edx, [esp + 0x190]
lea ecx, [esp + 0x9c]
push ecx
push edx
push 0
mov eax, dword [esp + 0x4c]
push eax
push esi
call dword [0x102dcee8]
add esp, 0x28
mov eax, dword [esp + 0x78]
test eax, eax
je 0x1005ef4b
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1005ef4b
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1005ef04
mov ecx, dword [esp + 0xa8]
jmp 0x1005ef0b
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x9c]
cmp eax, dword [ecx]
je 0x1005ef1f
mov edx, dword [esp + 0xa0]
jmp 0x1005ef2b
mov edx, dword [esp + 0xa0]
cmp edx, dword [ecx + 4]
je 0x1005ef4b
lea ecx, [esp + 0x178]
mov dword [esp + 0xc], ecx
lea edi, [esp + 0x88]
mov dword [esp + 0x10], edi
mov ecx, 0xff
call fcn.1005fb3c
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x38]
add edx, dword [ecx]
mov eax, dword [ebx + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x38], edx
cmp edx, eax
jge 0x1005f4ea
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1005effa
mov eax, dword [esp + 0xa8]
mov edx, dword [eax]
sub edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x54]
mov dword [eax + ebp + 0x10c], edx
mov edx, dword [esp + 0xa8]
mov edx, dword [edx + 4]
sub edx, dword [esp + 0xa0]
mov dword [eax + ebp + 0x110], edx
mov edx, dword [esp + 0xa8]
mov ecx, dword [edx]
mov dword [eax + ebp + 0x12c], ecx
mov edx, dword [edx + 4]
mov dword [eax + ebp + 0x130], edx
mov ecx, dword [esp + 0xa8]
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
add edi, 0x80000000
adc edi, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar edi, 1
sar edx, 1
add dword [esp + 0x5c], edi
add dword [esp + 0x60], edx
mov edx, dword [esp + 0xa4]
jmp 0x1005f049
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax]
sub eax, dword [esp + 0x9c]
mov dword [edx + ebp + 0x10c], eax
mov eax, dword [esp + 0xa4]
mov edi, dword [eax + 4]
sub edi, dword [esp + 0xa0]
mov eax, dword [esp + 0x60]
mov dword [edx + ebp + 0x110], edi
mov edx, dword [esp + 0xa4]
add ecx, dword [edx]
add eax, dword [edx + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x6c]
mov ecx, dword [edx]
mov dword [eax + ebp], ecx
mov edx, dword [edx + 4]
mov dword [eax + ebp + 4], edx
mov edx, dword [esp + 0xac]
mov edx, dword [edx]
add edx, edx
add edx, edx
mov dword [eax + edi + 0x14c], edx
mov ecx, dword [esp + 0xe8]
mov edx, dword [ecx]
test edx, edx
je 0x1005f08d
mov cl, byte [esp + 0x7c]
mov edi, 1
shl edi, cl
or dword [esp + 0x68], edi
mov eax, dword [esp + 0x78]
add dword [esp + 0x6c], 4
add ebp, 8
add eax, 1
add byte [esp + 0x7c], 0xff
mov dword [esp + 0x78], eax
cmp eax, 4
jl 0x1005e257
mov ebp, dword [esp + 0x38]
mov edx, dword [ebx + 0x24]
mov eax, dword [edx]
cmp ebp, eax
jge 0x1005f4dd
mov ecx, dword [esp + 0x5c]
mov esi, dword [ebx + 0x48]
mov eax, dword [ebx + 0x58]
mov edx, ecx
sar edx, 3
and ecx, 0xf
mov ecx, dword [ecx*4 + 0x1008b9e0]
mov dword [esp + 0x54], edx
mov dword [esp + 0x70], ecx
lea edi, [edx + ecx]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], edi
mov ecx, edx
sar ecx, 3
mov dword [esp + 0x58], ecx
and edx, 0xf
mov edx, dword [edx*4 + 0x1008b9e0]
mov dword [esp + 0x74], edx
lea edx, [ecx + edx]
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x10]
add esi, 0x40
mov dword [esp + 0x78], ecx
shr eax, 1
and edi, 1
add edi, edi
and edx, 1
add edi, edx
je 0x1005f22b
cmp edi, 1
jne 0x1005f18e
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x6c]
add edx, 0x80000000
adc edx, 0x80000000
lea ecx, [ecx + ebp - 1]
shr ecx, 0x1f
sar edx, 1
lea ebp, [edi + ecx - 1]
mov ecx, dword [esp + 0x7c]
sar ebp, 1
imul ebp, eax
add ecx, edx
lea ecx, [ecx + ebp]
mov edx, dword [esp + 0x78]
push edx
push eax
push ecx
push esi
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x48]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x1005f224
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x54]
lea ecx, [edx + ecx - 1]
mov edx, dword [esp + 0x5c]
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
sar edx, 1
mov dword [esp + 0x80], edx
cmp edi, 2
jne 0x1005f1e9
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x80]
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
imul edx, eax
lea ecx, [ecx + edx]
mov edx, dword [esp + 0x78]
push edx
push eax
push ecx
push esi
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x1005f224
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x58]
lea ecx, [edx + ecx - 1]
mov edx, dword [esp + 0x6c]
shr ecx, 0x1f
lea ecx, [edx + ecx - 1]
mov edx, dword [esp + 0x7c]
add edx, dword [esp + 0x80]
sar ecx, 1
imul ecx, eax
lea ecx, [edx + ecx]
mov edx, dword [esp + 0x78]
push edx
push eax
push ecx
push esi
call dword [0x1031e3c8]
add esp, 0x10
mov eax, dword [ebx + 0x58]
shr eax, 1
jmp 0x1005f25c
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x7c]
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
lea ecx, [ecx + edx]
mov edx, dword [esp + 0x6c]
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
imul edx, eax
lea esi, [ecx + edx]
push eax
push esi
push dword [ebx + 0x40]
mov edx, dword [esp + 0x90]
push edx
call dword [0x1031e3b0]
mov edx, dword [esp + 0x94]
push edx
call dword [0x1031e44c]
add esp, 0x14
mov edx, dword [ebx + 0x54]
test edx, edx
jne 0x1005f2a2
push dword [ebx + 0x50]
mov edx, dword [esp + 0x88]
push edx
mov ecx, dword [esp + 0x6c]
push ecx
call dword [0x1031e444]
add esp, 0xc
jmp 0x1005f2bb
push dword [ebx + 0x50]
mov edx, dword [esp + 0x88]
push edx
mov ecx, dword [esp + 0x6c]
push ecx
call dword [0x1031e438]
add esp, 0xc
test eax, eax
jle 0x1005f2d8
push 0x1008b820
mov edx, dword [esp + 0x68]
push edx
call fcn.10034cd8
add esp, 8
or dword [esp + 0x68], 2
add ebp, eax
mov edx, dword [ebx + 0x24]
cmp ebp, dword [edx]
jge 0x1005f4dd
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x10]
add edx, 0x40
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x58]
shr edx, 1
test edi, edi
je 0x1005f3f8
cmp edi, 1
jne 0x1005f357
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x58]
add eax, 0x80000000
adc eax, 0x80000000
lea esi, [edi + esi - 1]
shr esi, 0x1f
sar eax, 1
mov edi, dword [esp + 0x6c]
lea esi, [edi + esi - 1]
mov edi, dword [esp + 0x7c]
push ecx
sar esi, 1
imul esi, edx
add edi, eax
lea edi, [edi + esi]
push edx
push edi
mov edx, dword [esp + 0x84]
push edx
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x1005f3f1
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x54]
lea esi, [eax + esi - 1]
mov eax, dword [esp + 0x5c]
shr esi, 0x1f
lea eax, [eax + esi - 1]
sar eax, 1
mov dword [esp + 0x80], eax
cmp edi, 2
jne 0x1005f3b3
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
add edi, dword [esp + 0x80]
add eax, 0x80000000
adc eax, 0x80000000
push ecx
sar eax, 1
imul eax, edx
lea edi, [edi + eax]
push edx
push edi
mov edx, dword [esp + 0x84]
push edx
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x1005f3f1
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x58]
lea eax, [edi + eax - 1]
mov edi, dword [esp + 0x6c]
shr eax, 0x1f
lea eax, [edi + eax - 1]
mov edi, dword [esp + 0x7c]
add edi, dword [esp + 0x80]
push ecx
sar eax, 1
imul eax, edx
lea edi, [edi + eax]
push edx
push edi
mov edx, dword [esp + 0x84]
push edx
call dword [0x1031e3c8]
add esp, 0x10
mov edx, dword [ebx + 0x58]
shr edx, 1
jmp 0x1005f42d
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x7c]
add edi, 0x80000000
adc edi, 0x80000000
sar edi, 1
lea ecx, [ecx + edi]
mov edi, dword [esp + 0x6c]
add edi, 0x80000000
adc edi, 0x80000000
sar edi, 1
imul edi, edx
lea ecx, [ecx + edi]
mov dword [esp + 0x78], ecx
push edx
mov edx, dword [esp + 0x7c]
push edx
push dword [ebx + 0x44]
mov ecx, dword [esp + 0x90]
push ecx
call dword [0x1031e3b0]
mov edx, dword [esp + 0x94]
push edx
call dword [0x1031e44c]
add esp, 0x14
mov edx, dword [ebx + 0x54]
test edx, edx
jne 0x1005f477
push dword [ebx + 0x50]
mov eax, dword [esp + 0x88]
push eax
mov edx, dword [esp + 0x6c]
push edx
call dword [0x1031e444]
add esp, 0xc
jmp 0x1005f490
push dword [ebx + 0x50]
mov eax, dword [esp + 0x88]
push eax
mov edx, dword [esp + 0x6c]
push edx
call dword [0x1031e438]
add esp, 0xc
test eax, eax
jle 0x1005f4ad
push 0x1008b820
mov eax, dword [esp + 0x68]
push eax
call fcn.10034cd8
add esp, 8
or dword [esp + 0x68], 1
add ebp, eax
mov edx, dword [esp + 0x68]
mov eax, edx
sar eax, 2
add eax, eax
add eax, eax
add eax, eax
neg eax
movzx ebx, byte [eax + 0x1008723c]
and edx, 3
add edx, edx
add edx, edx
add edx, edx
or edx, 2
movzx ecx, byte [edx*8 + 0x100870c4]
add ebx, ecx
add ebp, ebx
mov eax, ebp
add esp, 0x18c
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, edx
jmp 0x1005f0b7