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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
inc ecx
mov dword [esp + 0x4c], ecx
inc ecx
mov eax, dword [edi]
mov esi, dword [edi + 8]
mov dword [esp + 0x38], ecx
inc ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x2c]
lea ebx, [ecx + 1]
mov dword [esp + 0x1c], edi
add ecx, 2
mov byte [esp + 0x13], 1
mov dword [esp + 0x60], ecx
inc ecx
mov dword [esp + 0x50], ecx
inc ecx
mov dword [esp + 0x6c], ecx
inc ecx
mov dword [esp + 0x68], ecx
inc ecx
cmp eax, ecx
mov dword [esp + 0x18], ebx
mov dword [ebp + 0x10], ecx
cmovle eax, ecx
mov dword [edi + 0x2c], eax
test esi, esi
jne 0x1004f212
cmp dword [edi + 0x74], esi
jne 0x1004f1fd
mov ecx, dword [esp + 0x2c]
test byte [ecx + 0x4c], 8
jne 0x1004f1fd
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.10028fb0
mov esi, eax
test esi, esi
je 0x1004ff84
mov edx, dword [esp + 0x20]
test edx, edx
je 0x1004ff84
cmp byte [edx + 0x2b], 0
jne 0x1004ff84
mov edx, dword [edx]
mov ecx, str.sqlite__
push 0x5c
push 0x10111b18
call fcn.1005eb50
add esp, 8
test eax, eax
je 0x1004ff84
mov ecx, dword [esp + 0x20]
mov edx, 0xffff8000
mov dword [esp + 0x30], edx
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
je 0x1004f27c
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x1004f27c
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x1004f270
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x2c]
add edx, edx
mov ecx, edi
mov eax, dword [eax + 0x10]
push dword [eax + edx*8]
mov eax, dword [esp + 0x24]
mov edx, 0x1c
push 0
push dword [eax]
call fcn.10051b80
add esp, 0xc
test eax, eax
jne 0x1004ff84
mov eax, dword [esp + 0x20]
mov ecx, edi
mov edx, dword [esp + 0x30]
push dword [eax]
push 0
push dword [eax + 0x14]
call fcn.10051da0
mov edi, dword [ebp + 0x14]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, edi
inc edi
mov dword [esp + 0x74], edx
mov dword [ebp + 0x14], edi
push 0x64
mov eax, dword [eax + 0x28]
push dword [esp + 0x24]
lea ecx, [edi + 1]
push dword [esp + 0x38]
cmp eax, ecx
cmovle eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x28], eax
call fcn.10065820
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x50]
mov ecx, esi
push dword [eax]
call fcn.100294a0
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], edx
test edx, edx
je 0x1004fed4
nop
test eax, eax
je 0x1004f32c
cmp eax, edx
jne 0x1004fec1
movzx eax, byte [esp + 0x13]
xor ecx, ecx
cmp dword [edx + 0x24], ecx
cmovne ecx, eax
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x20]
test byte [ecx + 0x1c], 0x80
je 0x1004f361
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
jne 0x1004f361
movzx edi, word [edx + 0x32]
mov eax, ecx
mov dword [esp + 0x44], edi
mov ecx, edi
mov edi, dword [ebp + 0x14]
jmp 0x1004f377
test byte [edx + 0x38], 8
movzx eax, word [edx + 0x34]
mov dword [esp + 0x44], eax
mov ecx, eax
mov eax, edx
je 0x1004f377
movzx ecx, word [edx + 0x32]
mov eax, dword [eax]
lea ebx, [ecx - 1]
mov edx, dword [esp + 0x6c]
mov ecx, esi
push eax
mov dword [esp + 0x4c], ebx
call fcn.100294a0
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [ebp + 0x10]
add ecx, ebx
lea ebx, [esi + 0x74]
mov dword [esp + 0x24], ebx
mov eax, dword [edx + 0x2c]
cmp eax, ecx
cmovle eax, ecx
mov dword [edx + 0x2c], eax
lea eax, [esi + 0x78]
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx]
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x2c]
cmp dword [eax], ecx
jg 0x1004f3d5
push dword [esp + 0x30]
mov ecx, esi
push edx
push edi
mov edx, 0x64
call fcn.10029250
add esp, 0xc
jmp 0x1004f403
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov dword [esp + 0x64], eax
call fcn.1005b100
mov edi, eax
test edi, edi
je 0x1004f455
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
cmp byte [eax + 0x53], 0
je 0x1004f443
cmp dword [eax + 0x210], 0
jne 0x1004f455
add dword [edi], 0xffffffff
jne 0x1004f455
mov ecx, dword [edi + 0xc]
mov edx, edi
call fcn.10004cc0
jmp 0x1004f455
mov eax, dword [edx + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edi
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
mov ecx, dword [ebx]
inc edi
mov edx, dword [esp + 0x44]
cmp dword [eax], ecx
jg 0x1004f47d
push 0
push edi
push edx
mov edx, 0x46
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x1004f4a7
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx]
movzx edx, word [eax + 0x32]
mov eax, dword [esp + 0x14]
cmp dword [eax], ecx
jg 0x1004f4d1
push 0
push dword [esp + 0x60]
mov ecx, esi
push edx
mov edx, 0x46
call fcn.10029250
add esp, 0xc
jmp 0x1004f503
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
mov dword [esp + 0x64], ecx
cmp dword [eax], ecx
jg 0x1004f530
push 0
push 0
push dword [ebp + 0x14]
mov edx, 0x26
mov ecx, esi
call fcn.10029250
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x1004f561
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
cmp dword [eax], ecx
jg 0x1004f583
push 1
push dword [esp + 0x1c]
mov ecx, esi
push edx
mov edx, 0x60
call fcn.10029250
add esp, 0xc
jmp 0x1004f5b5
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx]
mov edx, dword [eax + 0x1ec]
mov eax, dword [esp + 0x14]
cmp dword [eax], ecx
jg 0x1004f5e1
push 0
push dword [esp + 0x64]
mov ecx, esi
push edx
mov edx, 0x46
call fcn.10029250
add esp, 0xc
jmp 0x1004f613
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
xor edx, edx
push 0
push 0x10114874
push 4
push dword [esp + 0x58]
push edi
call fcn.100297c0
mov edi, dword [esp + 0x28]
add esp, 0x14
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004f652
push 0
push dword [esp + 0x3c]
mov edx, 0x46
mov ecx, esi
push 0
call fcn.10029250
add esp, 0xc
jmp 0x1004f684
mov edx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x48]
mov eax, dword [ebx]
mov dword [esp + 0x3c], eax
test ecx, ecx
jle 0x1004fafc
mov eax, dword [esp + 0x1c]
push 0
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x48], eax
lea eax, [ecx*4]
mov ecx, dword [esp + 0x30]
push eax
call fcn.10005060
add esp, 8
mov dword [esp + 0x58], eax
test eax, eax
je 0x1004feb7
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004f6e3
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x1004f715
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x48], 1
mov ecx, dword [ebx]
mov dword [esp + 0x3c], ecx
jne 0x1004f782
mov eax, dword [esp + 0x28]
cmp word [eax + 0x32], 1
jne 0x1004f782
cmp byte [eax + 0x36], 0
je 0x1004f782
cmp dword [edi], ecx
jg 0x1004f751
push 0
push dword [esp + 0x48]
mov edx, 0x33
mov ecx, esi
push dword [ebp + 0x10]
call fcn.10029250
add esp, 0xc
jmp 0x1004f782
mov edx, dword [ebp + 0x10]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
mov dword [esp + 0x34], eax
nop dword [eax + eax]
lea ecx, [eax*4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], ecx
mov eax, dword [eax + 0x20]
mov edi, dword [ecx + eax]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov bl, byte [ecx + 0xb1]
mov bh, byte [ecx + 0x50]
movzx eax, bl
mov dl, bh
push eax
push edi
call fcn.1005b600
add esp, 8
mov dword [esp + 0x54], eax
test bl, bl
jne 0x1004f7e9
test eax, eax
je 0x1004f7d5
cmp dword [eax + 0xc], 0
jne 0x1004f7e9
mov ecx, dword [esp + 0x1c]
mov dl, bh
push edi
push eax
call fcn.1005b760
add esp, 8
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004f816
push 0
push dword [esp + 0x3c]
mov edx, 0x46
mov ecx, esi
push dword [esp + 0x3c]
call fcn.10029250
mov edx, dword [esp + 0x40]
add esp, 0xc
jmp 0x1004f84c
mov edi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x34]
lea ecx, [ecx + ecx*4]
mov dword [ebx], eax
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004f86f
push dword [esp + 0x18]
mov ecx, esi
push edx
push dword [ebp + 0x14]
mov edx, 0x5c
call fcn.10029250
mov edx, dword [esp + 0x40]
add esp, 0xc
jmp 0x1004f89c
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
mov edi, dword [ebx]
add edx, dword [ebp + 0x10]
cmp dword [eax], edi
jg 0x1004f8c3
push edx
push 0
push dword [esp + 0x20]
mov edx, 0x34
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov edi, eax
jmp 0x1004f8f5
lea eax, [edi + 1]
mov dword [ebx], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov ecx, edi
cmp byte [eax + 0x53], 0
jne 0x1004f936
test edi, edi
jns 0x1004f906
mov ecx, dword [ebx]
dec ecx
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x54]
je 0x1004f92b
push 0xfffffffffffffffe
push ecx
mov edx, eax
mov ecx, esi
call fcn.1002a2c0
add esp, 8
jmp 0x1004f936
test ecx, ecx
je 0x1004f936
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x58]
mov dword [eax + ecx], edi
mov eax, dword [ebx]
test eax, eax
jle 0x1004f957
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
inc eax
mov dword [esp + 0x34], eax
cmp eax, edx
jl 0x1004f790
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004f98e
push 0
push dword [esp + 0x3c]
mov ecx, esi
push edx
mov edx, 0x46
call fcn.10029250
add esp, 0xc
jmp 0x1004f9c0
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004f9df
push 0
push dword [esp + 0x48]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.10029250
add esp, 0xc
jmp 0x1004fa11
mov edx, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edi, dword [esp + 0x3c]
mov edx, dword [ebx]
cmp byte [eax + 0x53], 0
lea ecx, [edi - 1]
je 0x1004fa2a
mov dword [0x1011f1f4], edx
jmp 0x1004fa3b
test ecx, ecx
mov eax, edx
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 - 0xc], edx
xor edi, edi
nop dword [eax]
mov eax, dword [esp + 0x58]
mov edx, dword [ebx]
mov ecx, dword [eax + edi*4]
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
je 0x1004fa58
mov eax, 0x1011f1ec
jmp 0x1004fa69
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx]
add edx, edi
cmp dword [eax], ecx
jg 0x1004fa91
push edx
push edi
push dword [ebp + 0x14]
mov edx, 0x5c
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x1004fabe
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov ebx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
inc edi
cmp edi, dword [esp + 0x48]
jl 0x1004fa40
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x44]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1004fae7
push edx
mov edx, esi
call fcn.10029c70
add esp, 4
jmp 0x1004faef
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
call fcn.10004cc0
mov ecx, dword [esp + 0x1c]
mov edx, 1
push 0
push 0x10118be0
push 2
push dword [esp + 0x24]
push dword [esp + 0x5c]
call fcn.100297c0
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov eax, dword [esp + 0x14]
mov edi, dword [ebx]
cmp dword [ecx + 0x1ec], 0
mov eax, dword [eax]
je 0x1004fcd5
cmp eax, edi
jg 0x1004fb5a
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x32
mov ecx, esi
call fcn.10029250
mov edx, dword [esp + 0x24]
add esp, 0xc
mov edi, eax
jmp 0x1004fb8c
mov edx, dword [esp + 0x18]
lea eax, [edi + 1]
mov dword [ebx], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
mov dword [esp + 0x58], ecx
cmp dword [eax], ecx
jg 0x1004fbb4
push 0
push 0
push edx
mov edx, 0x12
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov dword [esp + 0x58], eax
jmp 0x1004fbe6
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x12
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 1
push dword [ebp + 0x10]
mov edx, 0x1a
mov ecx, esi
push 0
push dword [ebp + 0x14]
call fcn.10029b70
mov ecx, dword [esi]
add esp, 0x10
mov edx, dword [ebx]
mov dword [esp + 0x70], eax
cmp byte [ecx + 0x53], 0
je 0x1004fc14
mov ecx, 0x1011f1ec
jmp 0x1004fc25
test edi, edi
lea eax, [edx - 1]
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea ecx, [eax + ecx*4]
mov edi, dword [esp + 0x14]
mov dword [ecx + 8], edx
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004fc4d
mov edx, dword [esp + 0x3c]
mov ecx, esi
push 0
push edx
push dword [ebp + 0x14]
mov edx, 5
call fcn.10029250
add esp, 0xc
jmp 0x1004fc7e
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [ebx]
cmp byte [eax + 0x53], 0
je 0x1004fc8f
mov eax, 0x1011f1ec
jmp 0x1004fca4
mov ecx, dword [esp + 0x58]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov edx, dword [ebx]
test ecx, ecx
jns 0x1004fcb4
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
je 0x1004fcc6
mov eax, 0x1011f1ec
mov dword [eax + 8], edx
jmp 0x1004fd29
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x1004fd29
cmp eax, edi
jg 0x1004fcf4
mov edx, dword [esp + 0x3c]
mov ecx, esi
push 0
push edx
push dword [ebp + 0x14]
mov edx, 5
call fcn.10029250
add esp, 0xc
jmp 0x1004fd25
mov edx, dword [ebp + 0x14]
lea eax, [edi + 1]
mov dword [ebx], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor edx, edx
push 0
push 0x101146f0
push 1
push dword [esp + 0x74]
push dword [esp + 0x5c]
call fcn.100297c0
mov edx, dword [ebx]
add esp, 0x14
cmp dword [edi], edx
jg 0x1004fd6b
push dword [esp + 0x18]
mov edx, 0x5f
mov ecx, esi
push 3
push dword [esp + 0x58]
call fcn.10029250
add esp, 0xc
mov edx, eax
jmp 0x1004fda1
mov edi, dword [esp + 0x50]
lea eax, [edx + 1]
mov dword [ebx], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x5f
mov dword [eax + ecx*4 + 8], 3
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x1004fdca
test edx, edx
jns 0x1004fdb0
mov edx, dword [ebx]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
push 0
push 0x1010a63c
lea edx, [eax + ecx*4]
mov ecx, esi
call fcn.1002a2c0
add esp, 8
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004fded
push 0
push dword [esp + 0x44]
mov edx, 0x7d
mov ecx, esi
push dword [ebp + 0xc]
call fcn.10029250
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x1004fe22
mov edi, dword [esp + 0x40]
lea eax, [ecx + 1]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov dword [ebx], eax
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x7d
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
cmp dword [edi], ecx
jg 0x1004fe42
push dword [esp + 0x40]
mov ecx, esi
push dword [esp + 0x1c]
push edx
mov edx, 0x7e
call fcn.10029250
add esp, 0xc
jmp 0x1004fe70
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx]
test edx, edx
jle 0x1004fe88
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov edx, 8
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [ebx]
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
je 0x1004fe97
mov eax, 0x1011f1ec
jmp 0x1004feac
mov ecx, dword [esp + 0x64]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x28]
mov edi, dword [ebp + 0x14]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x28], edx
test edx, edx
jne 0x1004f320
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x1004ff84
cmp byte [esp + 0x13], al
je 0x1004ff84
mov edi, dword [esp + 0x68]
lea edx, [eax + 0x60]
push edi
push dword [esp + 0x78]
mov ecx, esi
call fcn.100293c0
push edi
mov edx, 0x14
mov ecx, esi
call fcn.10029360
add esp, 0xc
mov edx, 0x49
mov ecx, esi
mov edi, eax
push dword [esp + 0x6c]
push 0
call fcn.100293c0
push 0
push 0x1010a63c
push ebx
push 3
push dword [esp + 0x68]
mov edx, 0x5f
mov ecx, esi
call fcn.100296d0
add esp, 0x1c
mov edx, 0x7d
mov ecx, esi
push dword [esp + 0x40]
push dword [ebp + 0xc]
call fcn.100293c0
push dword [esp + 0x48]
mov edx, 0x7e
mov ecx, esi
push ebx
push dword [ebp + 0xc]
call fcn.10029290
mov eax, dword [esi + 0x74]
add esp, 0x14
test eax, eax
jle 0x1004ff7b
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edx, edi
mov ecx, esi
call fcn.10029fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret