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

Disassembly:
sub esp, 0xb4
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, eax
mov eax, dword [esp + 0xc4]
mov ebx, dword [eax + 0x3c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
cmp dword [esp + 0xc8], ebp
jne 0x1005c819
pop esi
lea eax, [ebp + 7]
pop ebp
pop ebx
add esp, 0xb4
ret
movzx edx, word [eax + 0x10]
movzx ecx, byte [eax + 1]
push edi
lea edi, [ecx + edx]
cmp edi, 2
jge 0x1005c833
lea esi, [edi + 1]
mov dword [esp + 0x34], esi
jmp 0x1005c84e
mov dword [esp + 0x34], 3
cmp esi, ebp
je 0x1005c849
lea ebp, [edi - 2]
cmp esi, edi
je 0x1005c849
lea ebp, [esi - 1]
mov edi, 2
mov esi, ebp
sub esi, ecx
lea ecx, [esi + edi]
cmp ecx, edx
mov edx, dword [eax + 0x40]
mov dword [esp + 0x14], ebp
jne 0x1005c86a
movzx ecx, byte [eax + 5]
lea ecx, [ecx + edx + 8]
jmp 0x1005c887
movzx esi, word [eax + 0xc]
movzx eax, word [eax + 0x12]
add esi, edx
lea esi, [esi + ecx*2]
movzx ecx, byte [esi + 1]
movzx esi, byte [esi]
shl esi, 8
or ecx, esi
and ecx, eax
add ecx, edx
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
shl eax, 8
mov dword [esp + 0x54], ecx
movzx ecx, byte [ecx + 3]
or eax, edx
shl eax, 8
or eax, ecx
lea esi, [esp + edi*4 + 0x70]
push esi
mov dword [esp + 0x5c], eax
call fcn.1005b8d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005c9ef
add ebp, edi
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0xc8]
mov esi, dword [esi]
movzx eax, byte [esi + 1]
add eax, dword [esp + 0x3c]
movzx edx, word [esi + 0x10]
dec dword [esp + 0x38]
mov ecx, edi
lea esi, [eax + edx + 1]
dec edi
mov dword [esp + 0x3c], esi
test ecx, ecx
je 0x1005ca0b
movzx edx, word [ebp + 0x18]
cmp dword [esp + 0x38], edx
jne 0x1005c94f
cmp byte [ebp + 1], 0
je 0x1005c94f
mov eax, dword [ebp + 0x14]
movzx ecx, byte [eax]
movzx ebx, byte [eax + 1]
movzx edx, byte [eax + 2]
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, edx
shl ebx, 8
mov dword [esp + edi*4 + 0x90], eax
or ebx, ecx
push eax
mov eax, ebp
mov dword [esp + 0x5c], ebx
call fcn.1003a0b0
movzx edx, ax
add esp, 4
mov dword [esp + edi*4 + 0x5c], edx
mov byte [ebp + 1], 0
jmp 0x1005c9d0
movzx ecx, byte [ebp + 1]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x40]
mov edx, esi
sub edx, ecx
movzx ecx, word [ebp + 0xc]
add edx, edi
add ecx, eax
lea ecx, [ecx + edx*2]
movzx edx, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or edx, ecx
movzx ecx, word [ebp + 0x12]
and edx, ecx
movzx ebx, byte [eax + edx + 1]
movzx ecx, byte [eax + edx + 2]
add eax, edx
movzx edx, byte [eax]
shl edx, 8
or ebx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
shl ebx, 8
mov dword [esp + edi*4 + 0x90], eax
or ebx, edx
push eax
mov eax, ebp
mov dword [esp + 0x5c], ebx
call fcn.1003a0b0
movzx edx, byte [ebp + 1]
movzx eax, ax
lea ecx, [esp + 0x14]
push ecx
sub esi, edx
push eax
add esi, edi
push esi
mov esi, ebp
mov dword [esp + edi*4 + 0x6c], eax
call fcn.1003b0c0
add esp, 0x10
lea esi, [esp + edi*4 + 0x70]
mov eax, ebx
mov ebx, dword [esp + 0x2c]
push esi
call fcn.1005b8d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x1005c8d3
lea eax, [edi*4 + 4]
push eax
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.100ae530
add esp, 0xc
jmp 0x1005d2e8
mov edx, dword [esp + 0x2c]
movzx eax, word [edx + 0x14]
mov ebx, dword [esp + 0x34]
lea ecx, [eax + 0x50]
mov dword [esp + 0x20], ecx
imul ecx, ebx
add esi, 3
and esi, 0xfffffffc
lea edx, [esi + esi*2]
add ecx, eax
lea edi, [ecx + edx*2]
call fcn.10041130
xor ecx, ecx
mov dword [esp + 0x28], eax
cmp eax, ecx
jne 0x1005ca4b
mov dword [esp + 0x10], 7
jmp 0x1005d2e8
mov ebp, dword [esp + 0x4c]
lea eax, [eax + esi*4]
mov dword [esp + 0x1c], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x70]
movzx dx, byte [eax + 3]
movzx eax, byte [eax + 4]
add dx, dx
add dx, dx
cmp ebx, ecx
movzx edx, dx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
jle 0x1005cc18
mov dword [esp + 0x3c], ecx
jmp 0x1005ca90
mov edx, dword [esp + 0x2c]
movzx ecx, word [edx + 0x14]
add ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x50]
lea ebx, [ecx + eax]
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x98], ebx
mov eax, dword [esp + eax*4 + 0x70]
mov esi, eax
mov ecx, 0x13
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x40], ecx
movzx edx, word [edx + 0x14]
mov eax, dword [eax + 0x40]
push edx
push eax
push ecx
call fcn.100ae5b0
movzx edi, word [ebx + 0x10]
movzx ecx, byte [ebx + 1]
add edi, ecx
add esp, 0xc
mov dword [esp + 0x48], 0
test edi, edi
jle 0x1005cb60
jmp 0x1005caf0
movzx eax, byte [ebx + 1]
sub eax, 1
mov ecx, dword [esp + 0x48]
js 0x1005cb18
lea edx, [ebx + eax*8 + 0x14]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x1005cb10
je 0x1005cbe2
dec ecx
dec eax
sub edx, 8
test eax, eax
jge 0x1005cb01
movzx eax, word [ebx + 0xc]
mov edx, dword [ebx + 0x40]
add eax, edx
lea ecx, [eax + ecx*2]
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x12]
and eax, ecx
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [edx + ebp*4], eax
push eax
mov eax, ebx
call fcn.1003a0b0
mov ecx, dword [esp + 0x20]
mov word [ecx + ebp*2], ax
mov eax, dword [esp + 0x4c]
inc eax
add esp, 4
inc ebp
cmp eax, edi
mov dword [esp + 0x48], eax
jl 0x1005caf0
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
dec eax
cmp edi, eax
jge 0x1005cbfd
cmp dword [esp + 0x40], 0
jne 0x1005cbfd
movzx eax, word [esp + edi*4 + 0x5c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov word [edx + ebp*2], ax
mov edx, dword [esp + 0x50]
movzx eax, ax
lea esi, [edx + ecx]
push eax
add ecx, eax
mov eax, dword [esp + edi*4 + 0x94]
push eax
push esi
mov dword [esp + 0x3c], ecx
call fcn.100ae5b0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
movzx edx, cx
add edx, esi
mov dword [eax + ebp*4], edx
mov eax, dword [esp + 0x28]
sub word [eax + ebp*2], cx
movzx eax, word [eax + ebp*2]
add esp, 0xc
cmp byte [ebx + 3], 0
jne 0x1005cbe9
mov ecx, dword [ebx + 0x40]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebp*4]
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
jmp 0x1005cbfc
mov eax, dword [edx]
jmp 0x1005cb38
cmp ax, 4
jae 0x1005cbfc
mov eax, dword [esp + 0x1c]
mov edx, 4
mov word [eax + ebp*2], dx
inc ebp
mov ecx, dword [esp + 0x20]
add dword [esp + 0x3c], ecx
inc edi
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x18], edi
jl 0x1005ca90
mov dword [esp + 0x4c], ebp
mov edx, dword [esp + 0x2c]
movzx eax, word [esp + 0x38]
movzx ecx, word [edx + 0x16]
lea edi, [ecx + eax - 0xc]
mov dword [esp + 0x3c], eax
xor edx, edx
xor ecx, ecx
xor eax, eax
test ebp, ebp
jle 0x1005cc70
mov ebx, dword [esp + 0x40]
jmp 0x1005cc40
mov esi, dword [esp + 0x1c]
movzx esi, word [esi + edx*2]
lea eax, [eax + esi + 2]
cmp eax, edi
jle 0x1005cc6b
sub eax, esi
mov dword [esp + ecx*4 + 0x5c], eax
mov dword [esp + ecx*4 + 0x7c], edx
test ebx, ebx
je 0x1005cc5f
dec edx
inc ecx
xor eax, eax
cmp ecx, 4
jg 0x1005ccf1
inc edx
cmp edx, ebp
jl 0x1005cc40
inc ecx
mov dword [esp + ecx*4 + 0x58], eax
mov dword [esp + ecx*4 + 0x78], ebp
lea edi, [ecx - 1]
mov dword [esp + 0x20], ecx
test edi, edi
jle 0x1005cce7
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + edi*4 + 0x5c]
mov esi, dword [esp + edi*4 + 0x58]
mov eax, dword [esp + edi*4 + 0x78]
dec eax
mov ecx, eax
sub ecx, dword [esp + 0x40]
inc ecx
test edx, edx
je 0x1005ccbf
movzx ebx, word [ebx + eax*2]
mov ebp, esi
sub ebp, ebx
mov ebx, dword [esp + 0x1c]
movzx ebx, word [ebx + ecx*2]
sub ebp, 2
lea ebx, [ebx + edx + 2]
cmp ebx, ebp
jg 0x1005ccda
mov ebx, dword [esp + 0x1c]
movzx ecx, word [ebx + ecx*2]
movzx eax, word [ebx + eax*2]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
add esi, ecx
dec dword [esp + edi*4 + 0x78]
jmp 0x1005cc90
mov dword [esp + edi*4 + 0x5c], edx
mov dword [esp + edi*4 + 0x58], esi
dec edi
test edi, edi
jg 0x1005cc84
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x48], 1
ja 0x1005ccfe
mov dword [esp + 0x10], 0xb
jmp 0x1005d2e8
mov edx, dword [eax + 0x40]
movzx eax, byte [edx]
xor esi, esi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x50], eax
jle 0x1005cf81
mov edi, dword [esp + 0x24]
jmp 0x1005cd20
cmp esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
jge 0x1005cd53
mov eax, dword [esp + esi*4 + 0x70]
mov ecx, dword [eax + 0x44]
push ecx
mov dword [esp + esi*4 + 0x60], eax
mov dword [esp + 0x34], eax
mov dword [esp + esi*4 + 0x74], 0
call fcn.10048d30
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
inc edi
jmp 0x1005cdae
mov edx, dword [esp + 0x58]
push 0
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
call fcn.100578e0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x1005d2e4
mov eax, dword [esp + 0x30]
inc edi
cmp byte [ebx + 0x12], 0
mov dword [esp + esi*4 + 0x5c], eax
je 0x1005cdb6
mov ecx, dword [esp + 0xc8]
mov ebx, dword [ecx + 0x48]
mov eax, dword [eax + 0x48]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
push 5
call fcn.10056310
mov ebp, dword [esp + 0x18]
add esp, 8
test ebp, ebp
jne 0x1005d2e4
inc esi
cmp esi, dword [esp + 0x20]
jl 0x1005cd20
mov dword [esp + 0x24], edi
cmp esi, dword [esp + 0x34]
jge 0x1005ce6e
nop
mov edi, dword [esp + esi*4 + 0x70]
test ebp, ebp
jne 0x1005d2e8
mov edx, dword [edi + 0x48]
mov eax, dword [edi + 0x3c]
push edx
push edi
push eax
call fcn.10057f90
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x1005d2e8
test edi, edi
je 0x1005ce5b
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1005ce5b
mov ebx, dword [eax + 0x10]
call fcn.10037ea0
mov ecx, dword [ebx + 0xa8]
cmp dword [ecx + 0xc], ebp
jne 0x1005ce5b
cmp byte [ebx + 4], 0
je 0x1005ce2b
cmp dword [ebx + 0x4c], ebp
jl 0x1005ce5b
jg 0x1005ce2b
cmp dword [ebx + 0x48], ebp
jbe 0x1005ce5b
cmp dword [ebx + 0x24], 0
jne 0x1005ce54
cmp byte [ebx + 0xe], 2
jb 0x1005ce54
mov eax, dword [0x1012c374]
test eax, eax
je 0x1005ce42
call eax
mov eax, ebx
call fcn.10050640
mov eax, dword [0x1012c378]
test eax, eax
je 0x1005ce54
call eax
mov eax, ebx
call fcn.100427d0
mov dword [esp + esi*4 + 0x70], 0
inc esi
cmp esi, dword [esp + 0x34]
jl 0x1005cdd0
mov eax, dword [esp + 0x20]
dec eax
xor ecx, ecx
test eax, eax
jle 0x1005ced5
lea esp, [esp]
mov eax, dword [esp + ecx*4 + 0x5c]
mov esi, dword [eax + 0x48]
lea edi, [esp + ecx*4 + 0x5c]
lea ebp, [ecx + 1]
cmp ebp, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov ebx, ecx
mov eax, ebp
jge 0x1005ceca
lea esp, [esp]
mov edx, dword [esp + eax*4 + 0x5c]
mov edx, dword [edx + 0x48]
cmp edx, esi
jae 0x1005ceaf
mov ebx, eax
mov esi, edx
inc eax
cmp eax, dword [esp + 0x20]
jl 0x1005cea0
cmp ebx, ecx
jle 0x1005ceca
mov ecx, dword [esp + ebx*4 + 0x5c]
mov edx, dword [esp + 0x30]
lea eax, [esp + ebx*4 + 0x5c]
mov dword [edi], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov ecx, ebp
dec eax
cmp ecx, eax
jl 0x1005ce80
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + ebp*4 + 0x58]
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x54]
mov edx, eax
shr edx, 0x18
mov byte [ecx], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 8
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x30], esi
mov byte [ecx + 2], dl
mov byte [ecx + 3], al
mov dword [esp + 0x18], ebx
test ebp, ebp
jle 0x1005d033
mov esi, dword [esp + ebx*4 + 0x5c]
mov ecx, dword [esp + 0x50]
call fcn.1003a830
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + ebx*4 + 0x7c]
lea ecx, [eax + edi*2]
push ecx
lea eax, [edx + edi*4]
push eax
mov ecx, ebp
sub ecx, edi
push ecx
push esi
call fcn.1003b190
mov edi, ebp
add esp, 0x10
cmp edi, dword [esp + 0x4c]
jge 0x1005d020
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + edi*2]
mov edx, dword [esp + 0x28]
mov ebp, dword [edx + edi*4]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0xcc]
movzx eax, cx
add eax, dword [esp + 0x3c]
add ebx, edx
cmp byte [esi + 3], 0
jne 0x1005cf8a
mov ecx, dword [esi + 0x40]
mov edx, dword [ebp]
mov dword [ecx + 8], edx
jmp 0x1005cfe9
mov ebp, dword [esp + 0x10]
jmp 0x1005cdc5
cmp dword [esp + 0x40], 0
je 0x1005cfcd
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + edi*4 - 4]
lea eax, [esp + 0xa4]
dec edi
push eax
push edx
push esi
call fcn.10039f60
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
lea ecx, [ebx + 4]
mov ebp, ebx
call fcn.10036c30
add esp, 0x14
add eax, 4
xor ebx, ebx
jmp 0x1005cfe9
sub ebp, 4
cmp cx, 4
jne 0x1005cfe9
mov eax, dword [esp + 0xc8]
push ebp
call fcn.1003a0b0
add esp, 4
movzx eax, ax
mov ecx, dword [esi + 0x48]
add dword [esp + 0x44], eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xd0]
push ebx
push ebp
push edx
call fcn.10058700
add esp, 0x14
cmp dword [esp + 0x10], 0
jne 0x1005d2e8
mov ebx, dword [esp + 0x18]
inc edi
inc dword [esp + 0x14]
inc ebx
cmp ebx, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
jl 0x1005cf12
mov esi, dword [esp + 0x30]
test byte [esp + 0x50], 8
mov eax, dword [esp + 0xc8]
jne 0x1005d058
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + ecx*4 + 0x94]
mov ecx, dword [edx + 0x40]
mov edx, dword [esi + 0x40]
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
cmp dword [esp + 0xd0], 0
mov ebx, dword [esp + 0x5c]
je 0x1005d0aa
cmp word [eax + 0x10], 0
jne 0x1005d0aa
movzx dx, byte [eax + 5]
cmp dx, word [ebx + 0xe]
ja 0x1005d0aa
lea ecx, [esp + 0x10]
push ecx
call fcn.10058a60
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x1005d2e8
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x3c]
push edx
push ebx
push eax
call fcn.10057f90
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x1005d2e8
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x12], 0
je 0x1005d2e8
mov ebp, dword [esp + 0x98]
movzx eax, byte [ebp + 1]
movzx esi, word [ebp + 0x10]
xor edi, edi
add esi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], eax
cmp eax, edi
je 0x1005d0dd
movzx edx, word [ebp + 0x18]
jmp 0x1005d0e0
or edx, 0xffffffff
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edi
jle 0x1005d280
mov dword [esp + 0x54], edi
lea ebx, [ebx]
xor ecx, ecx
cmp edi, esi
jne 0x1005d14b
cmp dword [esp + 0x40], ecx
sete cl
lea ecx, [ecx]
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + eax*4 + 0x9c]
movzx ebx, word [ebp + 0x10]
inc eax
mov dword [esp + 0x48], eax
mov al, byte [ebp + 1]
movzx esi, al
add ebx, ecx
add esi, ebx
add esi, edi
test al, al
je 0x1005d143
movzx edx, al
mov dword [esp + 0x44], edx
movzx edx, word [ebp + 0x18]
add edx, ecx
add edx, edi
cmp edi, esi
je 0x1005d110
mov dword [esp + 0x14], edx
cmp edi, edx
jne 0x1005d166
mov eax, dword [esp + 0x44]
dec eax
mov ecx, 1
mov dword [esp + 0x44], eax
test eax, eax
jle 0x1005d166
inc edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x54]
cmp edi, dword [esp + eax + 0x7c]
jne 0x1005d194
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
add eax, eax
add eax, eax
cmp dword [esp + 0x40], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + eax + 0x5c]
mov dword [esp + 0x18], eax
je 0x1005d273
test ecx, ecx
jne 0x1005d1a8
mov ecx, dword [ebp + 0x48]
mov eax, dword [esp + 0x18]
cmp ecx, dword [eax + 0x48]
je 0x1005d273
cmp word [esp + 0x38], 0
jne 0x1005d1f3
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + edi*4]
movzx eax, byte [ecx]
lea edx, [esp + 0x10]
push edx
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx + 0x48]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
push 5
call fcn.10056310
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esp + 0x1c]
mov cx, word [eax + edi*2]
mov eax, dword [esp + 0x18]
cmp cx, word [eax + 0xa]
jbe 0x1005d273
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx + edi*4]
jne 0x1005d273
lea edx, [esp + 0xa4]
push edx
push ebx
push eax
call fcn.10039f60
mov ax, word [esp + 0xcc]
add esp, 0xc
test ax, ax
je 0x1005d26f
movzx ecx, ax
movzx eax, byte [ecx + ebx + 1]
add ecx, ebx
lea edx, [esp + 0x10]
push edx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x3c]
push 3
call fcn.10056310
add esp, 8
mov edx, dword [esp + 0x14]
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x1005d100
xor edi, edi
cmp word [esp + 0x38], di
jne 0x1005d2e8
xor esi, esi
cmp dword [esp + 0x24], esi
jle 0x1005d2e8
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
jmp 0x1005d2a0
mov edx, dword [esp + esi*4 + 0x5c]
mov ecx, dword [edx + 0x40]
movzx ebx, byte [ecx + 8]
add ecx, 8
lea eax, [esp + 0x10]
push eax
movzx eax, byte [ecx + 1]
shl ebx, 8
or eax, ebx
movzx ebx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, ebx
mov ebx, dword [edx + 0x48]
shl eax, 8
or eax, ecx
push 5
mov ecx, ebp
call fcn.10056310
inc esi
add esp, 8
cmp esi, edi
jl 0x1005d2a0
jmp 0x1005d2e8
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x28]
call fcn.10041260
mov ebx, dword [esp + 0x34]
xor edi, edi
test ebx, ebx
jle 0x1005d36c
jmp 0x1005d300
mov eax, dword [esp + edi*4 + 0x70]
test eax, eax
je 0x1005d367
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1005d367
mov esi, dword [eax + 0x10]
call fcn.10037ea0
mov edx, dword [esi + 0xa8]
cmp dword [edx + 0xc], 0
jne 0x1005d367
cmp byte [esi + 4], 0
je 0x1005d337
cmp dword [esi + 0x4c], 0
jl 0x1005d367
jg 0x1005d337
cmp dword [esi + 0x48], 0
jbe 0x1005d367
cmp dword [esi + 0x24], 0
jne 0x1005d360
cmp byte [esi + 0xe], 2
jb 0x1005d360
mov eax, dword [0x1012c374]
test eax, eax
je 0x1005d34e
call eax
mov eax, esi
call fcn.10050640
mov eax, dword [0x1012c378]
test eax, eax
je 0x1005d360
call eax
mov eax, esi
call fcn.100427d0
inc edi
cmp edi, ebx
jl 0x1005d300
mov ebx, dword [esp + 0x24]
xor edi, edi
test ebx, ebx
jle 0x1005d3e2
mov eax, dword [esp + edi*4 + 0x5c]
test eax, eax
je 0x1005d3dd
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1005d3dd
mov esi, dword [eax + 0x10]
call fcn.10037ea0
mov eax, dword [esi + 0xa8]
cmp dword [eax + 0xc], 0
jne 0x1005d3dd
cmp byte [esi + 4], 0
je 0x1005d3ad
cmp dword [esi + 0x4c], 0
jl 0x1005d3dd
jg 0x1005d3ad
cmp dword [esi + 0x48], 0
jbe 0x1005d3dd
cmp dword [esi + 0x24], 0
jne 0x1005d3d6
cmp byte [esi + 0xe], 2
jb 0x1005d3d6
mov eax, dword [0x1012c374]
test eax, eax
je 0x1005d3c4
call eax
mov eax, esi
call fcn.10050640
mov eax, dword [0x1012c378]
test eax, eax
je 0x1005d3d6
call eax
mov eax, esi
call fcn.100427d0
inc edi
cmp edi, ebx
jl 0x1005d376
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret