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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx]
push ebp
push esi
push edi
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x34], edi
add edi, 1
mov dword [esp + 0x28], edi
add edi, 1
mov dword [esp + 0x44], edi
add edi, 1
mov dword [esp + 0x50], edi
add edi, 1
mov dword [esp + 0x1c], edi
add edi, 1
mov dword [esp + 0x3c], edi
add edi, 1
mov dword [esp + 0x58], edi
add edi, 1
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x48], edi
add edi, 1
cmp eax, edi
mov byte [esp + 0x13], 1
mov dword [esp + 0x88], edi
jg 0x10057e79
mov eax, edi
mov ebp, dword [ebx + 8]
test ebp, ebp
mov dword [ebx + 0x48], eax
jne 0x10057ec4
call fcn.1002a070
mov ebp, eax
test ebp, ebp
mov dword [ebx + 8], eax
je 0x10057ea7
push 0x9b
mov esi, ebp
call fcn.10035f60
mov esi, dword [esp + 0x80]
add esp, 4
cmp dword [ebx + 0x198], 0
jne 0x10057ebc
mov ecx, dword [ebx]
test byte [ecx + 0x3c], 8
jne 0x10057ebc
mov byte [ebx + 0x17], 1
test ebp, ebp
je 0x10058aca
test esi, esi
je 0x10058aca
cmp dword [esi + 0x20], 0
je 0x10058aca
mov eax, dword [esi]
push 7
push str.sqlite_
push eax
mov dword [esp + 0x60], eax
call sym.SQLite.Interop.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
je 0x10058aca
mov edx, dword [esp + 0x7c]
mov esi, dword [edx + 0x44]
mov ecx, dword [esp + 0x38]
call fcn.100121a0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x40], eax
shl eax, 4
mov eax, dword [eax + edx]
push eax
push 0
push ecx
push 0x1c
mov eax, ebx
call fcn.10039af0
add esp, 0x10
test eax, eax
jne 0x10058aca
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x40]
push edx
push 0
push eax
push ecx
mov eax, ebx
call fcn.1002f210
mov eax, dword [esp + 0x9c]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x5c], eax
add eax, 1
mov dword [esp + 0x30], eax
add eax, 1
add esp, 0x10
cmp ecx, eax
jle 0x10057f6b
mov eax, ecx
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x7c]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x4c]
push 0x34
push edx
push eax
mov eax, esi
mov ecx, ebx
call fcn.1004fc30
mov ecx, dword [esi]
mov edx, dword [esp + 0x48]
add esp, 0xc
push 0
push ecx
push 0
push edx
push 0
push 0x61
mov esi, ebp
call fcn.10035e40
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 8]
add esp, 0x18
test eax, eax
mov dword [esp + 0x14], eax
je 0x10058a15
lea ebx, [ebx]
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x10057fd3
cmp ecx, eax
jne 0x10058a06
cmp dword [eax + 0x24], 0
jne 0x10057fde
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 0x32]
mov esi, dword [esp + 0x38]
lea ecx, [eax*4 + 4]
mov dword [esp + 0x18], eax
call fcn.10027660
test eax, eax
mov dword [esp + 0x30], eax
je 0x10058a02
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x38]
and dl, 3
cmp dl, 2
jne 0x10058023
mov eax, dword [esp + 0x7c]
test byte [eax + 0x2c], 0x20
je 0x10058023
mov eax, dword [eax]
jmp 0x10058025
mov eax, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
push 0
push 0x61
mov esi, ebp
call fcn.10035e40
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx + 0x48]
add edi, ecx
add esp, 0x18
cmp eax, edi
jg 0x1005804c
mov eax, edi
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push edx
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x2c]
push eax
push ecx
push 0x34
mov esi, ebp
call fcn.10030400
mov ecx, edi
mov eax, ebx
call fcn.1004eae0
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
lea edx, [ebx + 2]
push edx
push eax
push 0x31
call fcn.10035eb0
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea edi, [ebx + 1]
add eax, 1
push edi
push eax
push 0x19
mov dword [esp + 0x74], eax
call fcn.10035eb0
add esp, 0xc
push ebx
push edi
push 0
push 1
call fcn.10030400
mov eax, dword [ebp + 4]
mov edi, dword [ebp]
add esp, 0x10
test eax, eax
je 0x100580e7
cmp byte [edi + 0x40], 0
jne 0x100580e7
mov ecx, dword [ebp + 0x20]
sub ecx, 1
lea ecx, [ecx + ecx*4]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.10030230
mov dword [esi + 0x10], 0x100abbd4
mov byte [esi + 1], 0xfb
jmp 0x100580f6
mov ecx, 0x100abbd4
mov eax, 0xfffffffb
call fcn.10030230
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x10058108
mov eax, dword [ebp + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 2
mov eax, dword [esp + 0x20]
push eax
push 0x69
mov esi, ebp
call fcn.10035f10
mov ecx, dword [esp + 0x4c]
push ecx
push 0
push 0x19
mov dword [esp + 0x84], eax
call fcn.10035eb0
add esp, 0x14
push 0x10
call fcn.10035f60
mov edx, dword [ebp + 0x20]
xor ebx, ebx
add esp, 4
cmp dword [esp + 0x18], ebx
mov edi, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edx
jle 0x100581cf
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x20]
mov esi, dword [ecx + ebx*4]
mov edi, dword [esp + 0x78]
call fcn.1004a0f0
mov edx, dword [esp + 0x44]
push edx
push ebx
push 0x19
mov esi, ebp
mov edi, eax
call fcn.10035eb0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
push ebx
push ecx
push 0x2e
call fcn.10030400
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x2c]
push 0xfffffffffffffffc
push edi
lea eax, [ebx + edx]
push eax
push 0
push ecx
push 0x4e
call fcn.10035e40
mov edx, dword [esp + 0x58]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 4]
add esp, 0x28
test eax, eax
je 0x100581c2
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x80
add ebx, 1
cmp ebx, dword [esp + 0x18]
jl 0x10058151
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
push edx
push ebx
push 0x19
mov esi, ebp
call fcn.10035eb0
add esp, 0xc
push 0x10
call fcn.10035f60
mov ecx, dword [esp + 0x34]
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp + 0x20]
add esp, 4
cmp eax, edi
jbe 0x10058207
mov ecx, dword [ebp + 4]
lea edx, [edi + edi*4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
mov edi, 1
sub edx, edi
xor esi, esi
test ebx, ebx
mov dword [eax + 0x58], edx
jle 0x10058298
lea ecx, [ecx]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + esi*4]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
jbe 0x10058238
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]
sub ecx, edi
mov dword [edx + 0x58], ecx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], ebx
jg 0x1005825b
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10058290
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], edi
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x88]
mov dword [eax + 4], ecx
lea ecx, [esi + edx]
mov byte [eax], 0x2e
mov byte [eax + 3], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
add esi, edi
cmp esi, dword [esp + 0x18]
jl 0x10058220
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov eax, dword [edx + eax*4]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
jbe 0x100582b4
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]
mov eax, dword [esp + 0x7c]
sub ecx, edi
mov dword [edx + 0x58], ecx
test byte [eax + 0x2c], 0x20
jne 0x10058316
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x100582e5
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x100584a2
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], edi
mov ecx, dword [esp + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x50]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x6d
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x100584a2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 8]
test eax, eax
mov dword [esp + 0x24], eax
je 0x10058346
jmp 0x10058330
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x10058342
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10058330
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x78]
movzx eax, word [eax + 0x32]
mov ecx, dword [edx + 0x38]
cmp eax, ecx
mov esi, dword [edx + 0x3c]
mov dword [esp + 0x2c], esi
jg 0x10058368
add esi, eax
sub ecx, eax
mov dword [edx + 0x3c], esi
mov dword [edx + 0x38], ecx
jmp 0x10058377
mov ecx, dword [edx + 0x48]
lea esi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x2c], esi
mov dword [edx + 0x48], ecx
mov eax, dword [esp + 0x24]
xor edi, edi
cmp word [eax + 0x32], di
jbe 0x10058426
jmp 0x10058390
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x34]
xor eax, eax
test edx, edx
jle 0x100583c3
mov esi, dword [esp + 0x24]
mov esi, dword [esi + 4]
movzx esi, word [esi + edi*2]
mov ecx, dword [ecx + 4]
lea esp, [esp]
cmp si, word [ecx]
je 0x10058522
add eax, 1
add ecx, 2
cmp eax, edx
jl 0x100583b0
or eax, 0xffffffff
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], esi
movsx ebx, ax
jg 0x100583e1
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10058413
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
add edx, edi
mov byte [eax], 0x2e
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + 0x32]
add edi, 1
cmp edi, ecx
jl 0x10058390
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0x24]
movzx edi, word [edx + 0x32]
jg 0x10058446
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10058476
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
mov byte [eax], 0x30
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 + 0x32]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x78]
push ecx
mov eax, edi
call fcn.1001a9b0
add esp, 4
cmp edi, dword [esi + 0x38]
jle 0x100584a2
mov edx, dword [esp + 0x2c]
mov eax, esi
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], edx
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x100584ba
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x100584ed
mov eax, dword [ebp + 4]
mov ecx, 1
add dword [ebp + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
mov byte [eax], cl
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov ecx, dword [ebp + 4]
test ecx, ecx
mov edi, dword [ebp]
je 0x1005852a
cmp byte [edi + 0x40], 0
jne 0x1005852a
mov eax, dword [ebp + 0x20]
sub eax, 1
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.10030230
mov dword [esi + 0x10], 0x100abc5c
mov byte [esi + 1], 0xfb
jmp 0x10058539
movzx eax, ax
jmp 0x100583c6
mov ecx, 0x100abc5c
mov eax, 0xfffffffb
call fcn.10030230
mov ecx, dword [ebp + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x1005854d
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 0x10058565
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10058591
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
mov byte [eax], 9
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
push eax
push ebx
push ecx
mov eax, ebp
call fcn.10039d50
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
add esp, 0xc
cmp dword [edx + 0x54], esi
jg 0x100585c5
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x100585c5
mov eax, 1
jmp 0x100585f7
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x3c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], 3
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov eax, esi
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x10058648
cmp byte [edi + 0x40], 0
jne 0x10058648
cmp eax, ebx
jge 0x10058611
mov eax, dword [ebp + 0x20]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10030230
mov ecx, 0x100b0ba8
mov dword [esi + 0x10], ebx
call fcn.10016110
mov edx, dword [ebp]
mov edi, eax
mov ebx, ecx
call fcn.1002b3f0
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
xor ebx, ebx
jmp 0x10058654
mov ecx, 0x100b0ba8
xor eax, eax
call fcn.10030230
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x1005866c
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1005869b
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x34]
mov byte [eax], 0x45
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
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 0x100586b3
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x100586e6
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov byte [eax], 0x46
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x100586f8
mov eax, dword [ebp + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 8
mov esi, dword [esp + 0x48]
lea ecx, [esi + 2]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x7c]
mov bl, byte [ecx + 0x2c]
lea eax, [esi + 1]
shr bl, 4
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
lea edx, [esi + 3]
lea edi, [esi + 4]
not bl
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x78]
mov ecx, dword [edx + 0x48]
mov dword [esp + 0x2c], edi
add edi, eax
and bl, 2
lea eax, [edi + 1]
or bl, 0x41
cmp ecx, eax
jle 0x10058740
mov eax, ecx
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x20]
push edi
push 1
push eax
mov eax, ebp
mov dword [esp + 0x30], edx
call fcn.10039d50
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 0xc
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x5c], eax
jg 0x10058782
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x10058782
mov dword [esp + 0x54], 1
jmp 0x100587af
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x5c]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax], 0x4c
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x28]
push esi
push 2
push ecx
mov eax, ebp
call fcn.10039d50
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x34]
add esp, 0xc
push edx
push 3
push esi
mov eax, ebp
call fcn.10039d50
mov eax, dword [esp + 0x70]
add esp, 0xc
push eax
push 4
push esi
mov eax, ebp
call fcn.10039d50
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x58]
add esp, 0xc
push 0
push edi
push ecx
movzx edx, bl
push esi
push edx
mov eax, ebp
call fcn.10035ca0
xor ebx, ebx
add esp, 0x14
cmp dword [esp + 0x18], ebx
jle 0x1005883c
lea esp, [esp]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x7c]
add eax, ebx
push eax
movsx eax, word [edx + ebx*2]
push eax
push esi
push ecx
mov edi, ebp
call fcn.10055a20
add ebx, 1
add esp, 0x10
cmp ebx, dword [esp + 0x18]
jl 0x10058810
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
mov ebx, 1
jg 0x10058859
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1005888c
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], ebx
mov edx, dword [esp + 0x2c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
xor edi, edi
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
jmp 0x1005888e
xor edi, edi
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x100588a6
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x100588d5
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], ebx
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], 6
mov dword [eax + 0xc], edx
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 0x100588ed
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1005891e
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], ebx
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x34]
add ecx, 1
mov byte [eax], 0x45
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 0x10058936
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1005896b
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], ebx
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
add ecx, 1
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov byte [eax], 0x46
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 esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10058983
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x100589aa
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], ebx
mov edx, dword [esp + 0x24]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jbe 0x100589bf
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]
sub eax, ebx
mov dword [ecx + 0x58], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jbe 0x100589df
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 + 0x38]
sub edx, ebx
mov dword [eax + 0x58], edx
mov eax, dword [esp + 0x30]
call fcn.10021de0
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10057fc0
cmp dword [esp + 0x80], 0
jne 0x10058aca
cmp byte [esp + 0x13], 0
je 0x10058aca
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push edi
push ecx
push 0x31
mov esi, ebp
call fcn.10035eb0
add esp, 0xc
push edi
push 0x2d
call fcn.10035f10
mov edx, dword [esp + 0x60]
push edx
push 0
push 0x1c
mov dword [esp + 0x8c], eax
call fcn.10035eb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
add esp, 0x14
push 0
push 0x100b0ba8
push eax
push 3
push ecx
push 0x30
call fcn.10035e40
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x9c]
push ebx
push edi
push 0x45
call fcn.10035eb0
mov edx, dword [esp + 0x40]
add esp, 0x24
push ebx
push edx
push edi
push 0x46
call fcn.10030400
mov eax, dword [ebp + 4]
add esp, 0x10
test eax, eax
je 0x10058ab8
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 8
mov eax, dword [esp + 0x78]
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
jmp fcn.1001b350
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret