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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebx]
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x38], edi
inc edi
mov dword [esp + 0x18], edi
inc edi
mov dword [esp + 0x4c], edi
inc edi
mov dword [esp + 0x58], edi
inc edi
mov dword [esp + 0x20], edi
inc edi
mov dword [esp + 0x44], edi
inc edi
mov dword [esp + 0x5c], edi
inc edi
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x3c], edi
inc edi
cmp eax, edi
mov byte [esp + 0x17], 1
mov dword [esp + 0x78], edi
jg 0x1005c1b3
mov eax, edi
mov ebp, dword [ebx + 8]
mov dword [ebx + 0x48], eax
test ebp, ebp
jne 0x1005c1fb
call fcn.1002c190
mov ebp, eax
mov dword [ebx + 8], eax
test ebp, ebp
je 0x1005c1de
push 0x99
mov esi, ebp
call fcn.1003a230
mov esi, dword [esp + 0x70]
add esp, 4
cmp dword [ebx + 0x198], 0
jne 0x1005c1f3
mov ecx, dword [ebx]
test byte [ecx + 0x3c], 8
jne 0x1005c1f3
mov byte [ebx + 0x17], 1
test ebp, ebp
je 0x1005ce1e
test esi, esi
je 0x1005ce1e
cmp dword [esi + 0x20], 0
je 0x1005ce1e
mov ebx, dword [esi]
push 7
push str.sqlite_
push ebx
call sym.SQLite.Interop.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
je 0x1005ce1e
mov edx, dword [esp + 0x6c]
mov esi, dword [edx + 0x44]
mov ecx, dword [esp + 0x30]
call fcn.10012bc0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x48], eax
shl eax, 4
mov eax, dword [eax + edx]
push eax
mov eax, dword [esp + 0x6c]
push 0
push ebx
push 0x1c
call fcn.100396f0
add esp, 0x10
test eax, eax
jne 0x1005ce1e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [eax + 0x20]
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x48]
push ecx
push 0
push edx
mov eax, esi
call fcn.10035b70
mov eax, dword [esp + 0x88]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x4c], eax
inc eax
mov dword [esp + 0x34], eax
inc eax
add esp, 0xc
cmp ecx, eax
jle 0x1005c29b
mov eax, ecx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x6c]
mov ecx, esi
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x48]
push 0x36
push eax
push edx
push ecx
mov eax, ebx
call fcn.10053900
mov eax, dword [ebx]
mov ecx, dword [esp + 0x54]
push 0
push eax
push 0
push ecx
push 0
push 0x61
mov esi, ebp
call fcn.1003f5a0
mov eax, dword [ebx + 8]
add esp, 0x28
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005cd6f
jmp 0x1005c2e7
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x1005c2f7
cmp ecx, eax
jne 0x1005cd5c
cmp dword [eax + 0x24], 0
jne 0x1005c302
mov byte [esp + 0x17], 0
test byte [ebx + 0x2c], 0x20
je 0x1005c322
mov edx, dword [eax + 0x34]
and dl, 3
cmp dl, 2
jne 0x1005c322
movzx eax, word [eax + 0x2e]
mov ecx, dword [ebx]
mov dword [esp + 0x2c], eax
lea ebx, [eax - 1]
jmp 0x1005c33c
test byte [eax + 0x34], 8
movzx edx, word [eax + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x2c], edx
je 0x1005c339
movzx ebx, word [eax + 0x2e]
dec ebx
jmp 0x1005c33c
lea ebx, [edx - 1]
mov eax, dword [esp + 0x5c]
push 0
push ecx
push 0
push eax
push 0
push 0x61
mov esi, ebp
mov dword [esp + 0x3c], ebx
call fcn.1003f5a0
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx + 0x48]
lea eax, [ebx + edi]
add esp, 0x18
cmp ecx, eax
jle 0x1005c36b
mov eax, ecx
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push 0x36
mov esi, ebp
call fcn.100370c0
mov eax, dword [esp + 0x78]
mov ecx, ebx
call fcn.100527a0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
lea eax, [ebx + 3]
push eax
push ecx
push 0x32
call fcn.1003a180
mov edx, dword [esp + 0x48]
add esp, 0x1c
inc ebx
push ebx
push edx
push 0x19
call fcn.1003a180
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
movzx edx, word [ecx + 0x2e]
add esp, 0xc
add eax, 2
push eax
push edx
push 0x19
call fcn.1003a180
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push ebx
push 0
push 1
call fcn.100370c0
mov esi, dword [ebp + 4]
mov edx, dword [ebp]
add esp, 0x10
test esi, esi
je 0x1005c421
cmp byte [edx + 0x41], 0
jne 0x1005c421
mov eax, dword [ebp + 0x20]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.1003a090
mov dword [esi + 0x10], 0x100b0c54
mov byte [esi + 1], 0xfb
jmp 0x1005c430
mov ecx, 0x100b0c54
mov eax, 0xfffffffb
call fcn.1003a090
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x1005c442
mov eax, dword [ebp + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 3
mov eax, dword [esp + 0x28]
push eax
push 0x6c
mov esi, ebp
call fcn.1003a1e0
mov ecx, dword [esp + 0x54]
push ecx
push 0
push 0x19
mov dword [esp + 0x74], eax
call fcn.1003a180
mov esi, dword [esp + 0x38]
mov edx, dword [ebp + 0x20]
add esp, 0x14
mov dword [esp + 0x54], edx
test esi, esi
jle 0x1005c6a2
mov eax, ebp
call fcn.10037070
mov dword [esp + 0x50], eax
lea eax, [esi*4]
mov esi, dword [esp + 0x30]
push 0
push eax
call fcn.10028800
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x1005cd5c
push 0x10
mov esi, ebp
call fcn.1003a230
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x58], ecx
mov ecx, 1
add esp, 4
cmp dword [esp + 0x24], ecx
jne 0x1005c4e3
mov eax, dword [esp + 0x1c]
cmp word [eax + 0x2e], cx
jne 0x1005c4e3
cmp byte [eax + 0x32], 0
je 0x1005c4e3
mov edx, dword [esp + 0x50]
push edx
push edi
push 0x4d
call fcn.1003a180
add esp, 0xc
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x1005c56b
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
mov esi, dword [ecx + ebx*4]
mov edi, dword [esp + 0x68]
call fcn.1004e440
mov edx, dword [esp + 0x4c]
push edx
push ebx
push 0x19
mov esi, ebp
mov edi, eax
call fcn.1003a180
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
add esp, 0xc
push eax
push ebx
push ecx
push 0x2f
call fcn.100370c0
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffffc
push edi
lea eax, [ebx + edx]
push eax
push 0
push ecx
push 0x4e
call fcn.1003f5a0
mov edx, dword [esp + 0x5c]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 4]
add esp, 0x28
test eax, eax
je 0x1005c560
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x80
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x1005c4ef
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
push edx
push ebx
push 0x19
mov esi, ebp
call fcn.1003a180
mov eax, dword [esp + 0x5c]
add esp, 0xc
push eax
push 0
push 0x10
call fcn.1003a180
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x20]
dec eax
add esp, 0xc
cmp ecx, eax
jbe 0x1005c5a8
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
mov dword [eax + edx*4 + 8], ecx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
dec ecx
xor esi, esi
mov dword [edx + 0x58], ecx
test ebx, ebx
jle 0x1005c62f
jmp 0x1005c5c0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + esi*4]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
jbe 0x1005c5d8
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
mov dword [eax + edx*4 + 8], ecx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
dec ecx
mov dword [edx + 0x58], ecx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], ebx
jg 0x1005c5fa
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005c628
mov edx, dword [ebp + 4]
inc dword [ebp + 0x20]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
lea edx, [esi + edi]
mov byte [eax], 0x2f
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
inc esi
cmp esi, dword [esp + 0x24]
jl 0x1005c5c0
mov ecx, dword [ebp + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x50]
js 0x1005c648
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1005c648
mov esi, dword [ebp + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x208], 0
je 0x1005c66b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.10022ca0
jmp 0x1005c6a2
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax + 0x114]
jb 0x1005c695
cmp ecx, dword [eax + 0x118]
jae 0x1005c695
mov edx, dword [eax + 0x110]
mov dword [ecx], edx
dec dword [eax + 0xfc]
mov dword [eax + 0x110], ecx
jmp 0x1005c6a2
mov eax, dword [esp + 0x34]
push eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov ecx, dword [esp + 0x6c]
test byte [ecx + 0x2c], 0x20
jne 0x1005c6c7
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x70
mov esi, ebp
call fcn.1003a180
add esp, 0xc
jmp 0x1005c846
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1005c6f6
lea esp, [esp]
mov ecx, dword [eax + 0x34]
and cl, 3
cmp cl, 2
je 0x1005c6f2
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1005c6e0
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x68]
movzx eax, word [eax + 0x2e]
mov ecx, dword [edx + 0x38]
cmp eax, ecx
mov esi, dword [edx + 0x3c]
mov dword [esp + 0x34], esi
jg 0x1005c718
add esi, eax
sub ecx, eax
mov dword [edx + 0x3c], esi
mov dword [edx + 0x38], ecx
jmp 0x1005c727
mov ecx, dword [edx + 0x48]
lea esi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x34], esi
mov dword [edx + 0x48], ecx
mov eax, dword [esp + 0x24]
xor edx, edx
xor ebx, ebx
cmp dx, word [eax + 0x2e]
jae 0x1005c7d1
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx + 0x30]
xor eax, eax
test edx, edx
jle 0x1005c771
mov esi, dword [esp + 0x24]
mov esi, dword [esi + 4]
movzx esi, word [esi + ebx*2]
mov ecx, dword [ecx + 4]
lea esp, [esp]
cmp si, word [ecx]
je 0x1005c891
inc eax
add ecx, 2
cmp eax, edx
jl 0x1005c760
or eax, 0xffffffff
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], esi
movsx edi, ax
jg 0x1005c78f
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005c7c0
mov eax, dword [ebp + 4]
inc dword [ebp + 0x20]
mov ecx, dword [esp + 0x28]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x34]
add edx, ebx
mov byte [eax], 0x2f
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + 0x2e]
inc ebx
cmp ebx, ecx
jl 0x1005c740
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0x24]
movzx edi, word [edx + 0x2e]
jg 0x1005c7f1
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005c820
mov edx, dword [ebp + 4]
inc dword [ebp + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov byte [eax], 0x31
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x24]
movzx edi, word [eax + 0x2e]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x68]
push ebx
mov eax, edi
call fcn.1001b950
add esp, 4
cmp edi, dword [esi + 0x38]
jle 0x1005c846
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x1005c85e
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005c899
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
mov ebx, 1
add dword [ebp + 0x20], ebx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
xor edi, edi
mov byte [eax], bl
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
jmp 0x1005c8a0
movzx eax, ax
jmp 0x1005c774
mov ebx, 1
xor edi, edi
mov esi, dword [ebp + 4]
mov edx, dword [ebp]
cmp esi, edi
je 0x1005c8d5
cmp byte [edx + 0x41], 0
jne 0x1005c8d5
mov eax, dword [ebp + 0x20]
sub eax, ebx
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.1003a090
mov dword [esi + 0x10], 0x100b0cdc
mov byte [esi + 1], 0xfb
jmp 0x1005c8e4
mov ecx, 0x100b0cdc
mov eax, 0xfffffffb
call fcn.1003a090
mov ecx, dword [ebp + 4]
cmp ecx, edi
je 0x1005c8f6
mov eax, dword [ebp + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 3
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x1005c90e
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005c939
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], ebx
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
mov byte [eax], 9
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
mov eax, ebp
call fcn.10043730
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
add esp, 0xc
cmp dword [edx + 0x54], esi
jg 0x1005c96a
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
je 0x1005c96a
mov eax, ebx
jmp 0x1005c99b
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], ebx
mov edx, dword [esp + 0x44]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x31
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], 3
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, esi
mov esi, dword [ebp + 4]
mov edx, dword [ebp]
cmp esi, edi
je 0x1005c9f1
cmp byte [edx + 0x41], 0
jne 0x1005c9f1
cmp eax, edi
jge 0x1005c9b4
mov eax, dword [ebp + 0x20]
sub eax, ebx
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.1003a090
mov ecx, 0x100b6658
mov dword [esi + 0x10], 0
call fcn.10016f30
cdq
push edx
mov edx, dword [ebp]
push eax
mov ebx, ecx
call fcn.1002d530
add esp, 8
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x1005c9fd
mov ecx, 0x100b6658
xor eax, eax
call fcn.1003a090
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp dword [ecx + 0x54], esi
jg 0x1005ca17
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005ca42
mov eax, dword [ebp + 4]
inc dword [ebp + 0x20]
mov ecx, dword [esp + 0x74]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x38]
mov byte [eax], 0x4a
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x1005ca5a
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005ca89
mov edx, dword [ebp + 4]
inc dword [ebp + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov byte [eax], 0x4b
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ecx, dword [ebp + 4]
cmp ecx, edi
je 0x1005ca9b
mov eax, dword [ebp + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 8
mov ecx, dword [esp + 0x6c]
mov bl, byte [ecx + 0x2c]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
shr bl, 4
add esi, 4
not bl
add esi, eax
mov eax, dword [edx + 0x48]
and bl, 2
or bl, 0x44
cmp eax, esi
jg 0x1005cac7
mov eax, esi
mov ecx, edx
mov dword [ecx + 0x48], eax
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x20]
push esi
push 1
push eax
mov eax, ebp
mov dword [esp + 0x60], edx
call fcn.10043730
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 0xc
cmp dword [ecx + 0x54], edi
jg 0x1005cb07
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
je 0x1005cb07
mov dword [esp + 0x50], 1
jmp 0x1005cb2f
mov eax, dword [ebp + 4]
inc dword [ebp + 0x20]
xor ecx, ecx
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x4c
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push edi
push 2
push ecx
mov eax, ebp
call fcn.10043730
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [edi + 1]
push eax
push 3
push edx
mov eax, ebp
call fcn.10043730
add esp, 0xc
lea eax, [edi + 2]
push eax
mov eax, dword [esp + 0x1c]
push 4
push eax
mov eax, ebp
call fcn.10043730
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
add esp, 0xc
push 0
push esi
push ecx
movzx eax, bl
push edx
push eax
mov eax, ebp
call fcn.1003f420
xor esi, esi
add esp, 0x14
cmp dword [esp + 0x2c], esi
jle 0x1005cbbc
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x6c]
movsx ebx, word [eax + esi*2]
lea ecx, [edi + esi + 4]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push edx
push ebp
call fcn.10059890
inc esi
add esp, 0x10
cmp esi, dword [esp + 0x2c]
jl 0x1005cb92
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp dword [eax + 0x54], esi
jg 0x1005cbd6
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005cc03
mov edx, dword [ebp + 4]
inc dword [ebp + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
lea ecx, [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
add edi, 3
mov byte [eax], 0x31
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
jg 0x1005cc1b
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005cc4a
mov ecx, dword [ebp + 4]
inc dword [ebp + 0x20]
mov edx, dword [esp + 0x44]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x31
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], 6
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
jg 0x1005cc62
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005cc8e
mov ecx, dword [ebp + 4]
inc dword [ebp + 0x20]
mov edx, dword [esp + 0x74]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x38]
inc edx
mov byte [eax], 0x4a
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
jg 0x1005cca6
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005ccd6
mov ecx, dword [ebp + 4]
inc dword [ebp + 0x20]
mov edx, dword [esp + 0x74]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
inc edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov byte [eax], 0x4b
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x1005ccee
push ebp
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005cd1a
mov eax, dword [ebp + 4]
mov ecx, 1
add dword [ebp + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jbe 0x1005cd2f
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x60]
dec edx
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 0x20]
cmp eax, ecx
jbe 0x1005cd4e
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov edi, dword [esp + 0x78]
dec eax
mov dword [ecx + 0x58], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1005c2e3
cmp dword [esp + 0x70], 0
jne 0x1005ce1e
cmp byte [esp + 0x17], 0
je 0x1005ce1e
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
push edi
push eax
push 0x32
mov esi, ebp
call fcn.1003a180
add esp, 0xc
push edi
push 0x2e
call fcn.1003a1e0
mov ecx, dword [esp + 0x64]
push ecx
push 0
push 0x1c
mov dword [esp + 0x7c], eax
call fcn.1003a180
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
add esp, 0x14
push 0
push 0x100b6658
push edx
push 3
push eax
push 0x31
call fcn.1003f5a0
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x8c]
push ebx
push edi
push 0x4a
call fcn.1003a180
mov ecx, dword [esp + 0x44]
add esp, 0x24
push ebx
push ecx
push edi
push 0x4b
call fcn.100370c0
mov eax, dword [ebp + 4]
add esp, 0x10
test eax, eax
je 0x1005ce0c
mov ecx, dword [ebp + 0x20]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
mov eax, dword [esp + 0x68]
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
jmp fcn.1001c180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret