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

Disassembly:
sub esp, 0xb8
xor eax, eax
push ebp
mov ebp, dword [esp + 0xc0]
mov ecx, dword [ebp]
push esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x48], ecx
cmp dword [ebp + 0x40], eax
jne 0x1004e1b2
mov edx, ecx
cmp byte [edx + 0x41], al
jne 0x1004e1b2
mov eax, dword [esp + 0xc8]
push ebx
push ebp
call fcn.1002be50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004e1b1
mov esi, dword [ebx + 0x40]
mov ecx, dword [ebp]
call fcn.1000b080
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x58]
push eax
push ecx
push 0x6e
mov edx, ebx
mov eax, ebp
call fcn.1000b870
xor edx, edx
cmp dword [ebx + 0xc], edx
mov dword [esp + 0x60], eax
setne dl
push ebx
mov eax, ebp
mov dword [esp + 0x84], edx
call fcn.10031a40
add esp, 0x10
test eax, eax
jne 0x1004e1b1
mov eax, dword [esp + 0x58]
push eax
mov edx, ebx
mov eax, ebp
call fcn.100213a0
add esp, 4
test eax, eax
jne 0x1004e1b1
mov eax, dword [ebp + 0x44]
mov edx, dword [esp + 0xcc]
mov dword [edx + 0x38], eax
inc dword [ebp + 0x44]
mov esi, dword [ebp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
inc eax
test byte [ebx + 0x2a], 0x20
mov dword [esp + 0x50], eax
jne 0x1004d39e
mov dword [esp + 0x20], 0
jmp 0x1004d3a9
mov eax, ebx
call fcn.1000a180
mov dword [esp + 0x20], eax
mov ecx, dword [ebx + 8]
push edi
xor edi, edi
test ecx, ecx
je 0x1004d3d8
mov eax, dword [ecx + 0x34]
and al, 3
cmp al, 2
jne 0x1004d3ca
cmp dword [esp + 0x24], 0
je 0x1004d3ca
mov dword [esp + 0x1c], esi
mov dword [edx + 0x38], esi
inc dword [ebp + 0x44]
mov ecx, dword [ecx + 0x14]
mov esi, dword [ebp + 0x44]
inc edi
test ecx, ecx
jne 0x1004d3b3
movsx ecx, word [ebx + 0x22]
mov esi, dword [esp + 0x50]
add ecx, edi
lea edx, [edi + ecx*4 + 2]
push 0
push edx
call fcn.1000e2b0
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x1004e1b0
movsx eax, word [ebx + 0x22]
mov esi, dword [esp + 0x30]
lea eax, [esi + eax*4]
lea ecx, [eax + edi*4]
mov dword [esp + 0x74], eax
lea eax, [edi + 1]
push eax
push 1
push ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0xa0], eax
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x58]
xor edx, edx
add esp, 0xc
mov byte [ecx + edi + 1], 0
xor eax, eax
cmp dx, word [ebx + 0x22]
jge 0x1004d450
lea esp, [esp]
mov dword [esi + eax*4], 0xffffffff
movsx ecx, word [ebx + 0x22]
inc eax
cmp eax, ecx
jl 0x1004d440
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
xor eax, eax
xor edi, edi
cmp dword [edx], edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], ecx
mov byte [esp + 0x23], al
mov byte [esp + 0x13], al
mov dword [esp + 0x34], edi
jle 0x1004d634
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
mov edi, dword [edx + ecx]
lea esi, [esp + 0xa8]
call fcn.1002b360
test eax, eax
jne 0x1004e1b0
movsx eax, word [ebx + 0x22]
xor esi, esi
test eax, eax
jle 0x1004d571
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
mov edi, dword [ebx + 4]
lea eax, [edx + ecx]
mov dword [esp + 0x40], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [edi]
push ecx
push edx
call sym.idmindex.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x1004d534
movsx eax, word [ebx + 0x22]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x1004d512
jmp 0x1004d571
movsx eax, word [ebx + 0x20]
cmp esi, eax
jne 0x1004d54d
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov byte [esp + 0x13], 1
mov dword [esp + 0x44], edx
jmp 0x1004d566
cmp dword [esp + 0x24], 0
je 0x1004d566
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*2]
test byte [eax + ecx*8 + 0x17], 1
je 0x1004d566
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [eax + esi*4], edx
movsx ecx, word [ebx + 0x22]
cmp esi, ecx
jl 0x1004d5bb
cmp dword [esp + 0x24], 0
jne 0x1004d6bb
mov edx, dword [esp + 0xd4]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + eax + 4]
lea edi, [ecx + eax]
call fcn.10009940
test eax, eax
je 0x1004d6bb
mov edx, dword [edi]
or esi, 0xffffffff
mov byte [esp + 0x13], 1
mov dword [esp + 0x44], edx
mov eax, str.ROWID
jmp 0x1004d5cf
test esi, esi
jge 0x1004d5c6
mov eax, str.ROWID
jmp 0x1004d5cf
mov ecx, dword [ebx + 4]
lea eax, [esi + esi*2]
mov eax, dword [ecx + eax*8]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx + 0x10]
shl edx, 4
mov edx, dword [edx + ecx]
push edx
push eax
mov eax, dword [ebx]
push eax
push 0x17
mov eax, ebp
call fcn.10020620
add esp, 0x10
cmp eax, 1
je 0x1004e1b0
cmp eax, 2
jne 0x1004d60a
mov ecx, dword [esp + 0x30]
mov dword [ecx + esi*4], 0xffffffff
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xd4]
add dword [esp + 0x14], 0x18
inc eax
cmp eax, dword [edx]
mov dword [esp + 0x34], eax
jl 0x1004d4c0
mov ecx, dword [esp + 0xd0]
mov esi, dword [esp + 0x30]
xor edi, edi
mov al, byte [esp + 0x23]
add al, byte [esp + 0x13]
mov dword [ecx + 0x48], edi
mov byte [esp + 0x68], al
movzx eax, al
push eax
mov dword [ecx + 0x4c], edi
mov dword [esp + 0x44], eax
push ebx
mov ecx, esi
mov eax, ebp
call fcn.1000ada0
mov ecx, dword [ebx + 8]
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], edi
cmp ecx, edi
je 0x1004d71b
mov edi, edi
cmp byte [esp + 0x68], 0
jne 0x1004d6e9
cmp dword [esp + 0x48], 0
jne 0x1004d6e9
cmp dword [ecx + 0x24], 0
jne 0x1004d6e9
cmp ecx, dword [esp + 0x24]
je 0x1004d6e9
movzx edi, word [ecx + 0x2e]
xor eax, eax
xor edx, edx
mov dword [esp + 0x70], eax
test edi, edi
jle 0x1004d6f3
mov edi, dword [ecx + 4]
lea ecx, [ecx]
movsx eax, word [edi]
cmp dword [esi + eax*4], 0
jge 0x1004d6e9
movzx eax, word [ecx + 0x2e]
inc edx
add edi, 2
cmp edx, eax
jl 0x1004d6a0
mov eax, dword [esp + 0x70]
jmp 0x1004d6f3
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*8 + 4]
push eax
push str.no_such_column:__s
mov edi, ebp
call fcn.1001d580
add esp, 8
mov byte [ebp + 0x11], 1
jmp 0x1004e1b0
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x1004d700
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
mov byte [edx + edi + 1], 0
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
mov dword [edi + edx*4], eax
mov ecx, dword [ecx + 0x14]
inc edx
mov dword [esp + 0x14], edx
test ecx, ecx
jne 0x1004d670
mov eax, ebp
call fcn.10017ea0
mov dword [esp + 0x18], eax
test eax, eax
je 0x1004e1b0
cmp byte [ebp + 0x12], 0
jne 0x1004d739
call fcn.10008290
mov edi, dword [esp + 0x38]
push 1
mov edx, ebp
call fcn.1003d2a0
add esp, 4
test byte [ebx + 0x2a], 0x10
je 0x1004d799
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0xdc]
push eax
push ecx
push edx
push ebp
mov eax, ebx
call fcn.10043c80
add esp, 0x1c
xor eax, eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd0], eax
jmp 0x1004e1b0
mov eax, dword [ebp + 0x48]
inc eax
mov dword [esp + 0x38], eax
inc eax
cmp byte [esp + 0x23], 0
mov dword [ebp + 0x48], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], eax
jne 0x1004d7c2
cmp dword [esp + 0x58], 0
jne 0x1004d7c2
cmp dword [esp + 0x48], 0
je 0x1004d7d5
movsx edx, word [ebx + 0x22]
lea ecx, [eax + 1]
add edx, eax
mov dword [esp + 0x84], ecx
mov dword [ebp + 0x48], edx
cmp byte [esp + 0x68], 0
jne 0x1004d7ea
cmp dword [esp + 0x58], 0
jne 0x1004d7ea
cmp dword [esp + 0x48], 0
je 0x1004d7f4
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x6c], eax
movsx edx, word [ebx + 0x22]
mov eax, dword [ebp + 0x48]
add edx, eax
cmp dword [esp + 0x78], 0
lea ecx, [eax + 1]
mov dword [esp + 0x64], ecx
mov dword [ebp + 0x48], edx
je 0x1004d836
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0xa4]
mov eax, ebp
call fcn.10009ef0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xdc]
push ecx
push edx
push ebx
push ebp
call fcn.10046fc0
add esp, 0x14
mov edi, dword [esp + 0xd8]
lea esi, [esp + 0xa8]
call fcn.1002b360
test eax, eax
jne 0x1004e1b0
test byte [ebx + 0x2a], 0x20
mov esi, dword [esp + 0x18]
jne 0x1004d8df
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push 0
push 0x1a
call fcn.100113f0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0xe0]
push edx
push 4
push 0
push 0
mov eax, edi
push eax
push ecx
push ebp
call fcn.1003e290
mov edi, eax
add esp, 0x2c
test edi, edi
je 0x1004e1b0
lea ecx, [esp + 0x98]
call fcn.1000c050
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
push 0x68
call fcn.10011470
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x1004d8d9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push 0x81
call fcn.10011470
add esp, 4
push edi
jmp 0x1004da2d
mov edx, dword [esp + 0x24]
movzx edx, word [edx + 0x2e]
mov ecx, dword [ebp + 0x48]
lea eax, [ecx + 1]
movsx edi, dx
lea ecx, [edi + ecx + 1]
mov dword [ebp + 0x48], ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x60], ecx
inc ecx
mov dword [ebp + 0x44], ecx
push 0x1a
xor ecx, ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x18], edi
call fcn.10011470
mov ecx, dword [esp + 0x64]
push 0x39
mov eax, edi
call fcn.10011470
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x90], eax
mov eax, ebp
call fcn.10030f60
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xd8]
push eax
push 4
push 0
push 0
push ecx
push edx
push ebp
call fcn.1003e290
add esp, 0x24
mov dword [esp + 0x70], eax
test eax, eax
je 0x1004e1b0
lea ecx, [esp + 0x98]
call fcn.1000c050
mov esi, dword [esp + 0x18]
xor edi, edi
cmp dword [esp + 0x14], edi
mov dword [esp + 0x34], eax
jle 0x1004d9bc
jmp 0x1004d990
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
add eax, edi
push eax
movsx eax, word [edx + edi*2]
push eax
push ecx
push ebx
push esi
call fcn.1002b6f0
inc edi
add esp, 0x14
cmp edi, dword [esp + 0x14]
jl 0x1004d990
cmp dword [esp + 0x34], 0
je 0x1004d9e9
mov edx, dword [esp + 0x88]
push edx
push esi
call fcn.100116b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x94]
add esp, 8
mov dword [esp + 0x7c], eax
mov dword [esp + 0x3c], ecx
jmp 0x1004da28
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push edx
mov eax, esi
call fcn.10013ec0
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x94]
push eax
push 0x31
push esi
mov eax, edi
call fcn.10015ec0
mov ecx, dword [esp + 0x74]
push 0x6f
mov eax, edi
call fcn.10011470
add esp, 0x18
mov ecx, dword [esp + 0x70]
push ecx
call fcn.10014e50
mov edx, dword [esp + 0x54]
add esp, 4
test byte [edx + 0x18], 0x80
je 0x1004da61
cmp dword [ebp + 0x19c], 0
jne 0x1004da61
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
push 0x17
xor ecx, ecx
mov dword [esp + 0x84], eax
call fcn.10011470
add esp, 4
mov eax, esi
call fcn.10011490
cmp dword [esp + 0x78], 0
mov dword [esp + 0x14], eax
jne 0x1004db13
mov ecx, 5
cmp dword [esp + 0xdc], ecx
jne 0x1004da9e
mov eax, dword [esp + 0x94]
mov edi, dword [esp + 0x4c]
push eax
push 1
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x1004dab5
mov eax, dword [ebx + 8]
test eax, eax
je 0x1004dab1
cmp byte [eax + 0x32], cl
je 0x1004dafa
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1004daa5
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x34], 0
je 0x1004dae2
mov eax, dword [esp + 0x98]
test eax, eax
jl 0x1004dacf
sub eax, dword [esp + 0x28]
mov byte [eax + edi], 0
mov eax, dword [esp + 0x9c]
test eax, eax
jl 0x1004dae2
sub eax, dword [esp + 0x28]
mov byte [eax + edi], 0
mov edx, dword [esp + 0x28]
push 0
push 0
push edi
push edx
push 0x37
push ebx
push ebp
call fcn.10031fb0
add esp, 0x1c
jmp 0x1004db17
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x4c]
push ecx
push 1
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x1004dab5
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x34], 0
je 0x1004db78
sub edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp byte [edi + eax], 0
je 0x1004db4e
cmp dword [esp + 0x78], 0
jne 0x1004db4e
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x40]
push edx
push 0x45
push esi
call fcn.10015fa0
add esp, 0x10
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
jne 0x1004db65
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push 0x4c
call fcn.10011470
add esp, 4
jmp 0x1004dbf9
cmp dword [esp + 0x24], 0
je 0x1004dbcb
mov eax, esi
call fcn.10011490
mov ecx, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x14]
push 0x6d
mov dword [esp + 0x2c], edi
call fcn.10011470
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
push 0x66
call fcn.10011470
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x4c]
push 0x45
push esi
mov ecx, edi
call fcn.10015fa0
add esp, 0x18
jmp 0x1004dbf9
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
push edi
push edx
push eax
push 0x82
call fcn.100113f0
mov ecx, dword [esp + 0x2c]
push edi
push eax
push ecx
push 0x49
mov dword [esp + 0x48], eax
call fcn.100113f0
add esp, 0x20
cmp byte [esp + 0x13], 0
je 0x1004dc1f
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x44]
push edi
push edx
push ebp
call fcn.1004c470
add esp, 0xc
mov eax, edi
mov ecx, 0x26
call fcn.10011460
cmp byte [esp + 0x23], 0
jne 0x1004dcc1
cmp dword [esp + 0x48], 0
jne 0x1004dccc
cmp dword [esp + 0x58], 0
je 0x1004dd2c
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd4]
push eax
mov eax, dword [esp + 0x5c]
push ebx
push 3
push 0
push ecx
push ebp
call fcn.1000b900
or dword [esp + 0x5c], eax
xor edx, edx
add esp, 0x18
xor edi, edi
cmp dx, word [ebx + 0x22]
jge 0x1004dd0c
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x1004dcdf
cmp edi, 0x20
jge 0x1004dc9b
mov edx, 1
mov ecx, edi
shl edx, cl
test eax, edx
jne 0x1004dcdf
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x38]
test byte [eax + ecx + 0x17], 1
jne 0x1004dcdf
mov edx, dword [esp + 0x84]
lea eax, [edi + edx]
push 0x1a
xor ecx, ecx
call fcn.10011470
add esp, 4
jmp 0x1004dcfa
cmp dword [esp + 0x48], 0
je 0x1004dc40
push ebx
push ebp
call fcn.10022840
add esp, 8
mov dword [esp + 0x44], eax
jmp 0x1004dc48
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
lea ecx, [edi + eax]
push ecx
push edi
push edx
push ebx
push esi
call fcn.1002b6f0
add esp, 0x14
movsx eax, word [ebx + 0x22]
add dword [esp + 0x38], 0x18
inc edi
cmp edi, eax
jl 0x1004dc80
cmp byte [esp + 0x13], 0
jne 0x1004dd2c
cmp dword [esp + 0x24], 0
jne 0x1004dd2c
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
push 0x1f
call fcn.10011470
add esp, 4
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0x58]
push ecx
push ebx
push 1
push 1
push edx
push ebp
call fcn.1000b900
mov dword [esp + 0xa0], eax
xor eax, eax
add esp, 0x18
xor edi, edi
cmp ax, word [ebx + 0x22]
jge 0x1004ddf5
movsx ecx, word [ebx + 0x20]
cmp edi, ecx
je 0x1004ddbc
mov eax, dword [esp + 0x30]
mov eax, dword [eax + edi*4]
test eax, eax
jl 0x1004dd99
mov ecx, dword [esp + 0x64]
add ecx, edi
lea edx, [eax + eax*2]
mov eax, dword [esp + 0xd4]
push ecx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*8]
push edx
push ebp
call fcn.1004c470
add esp, 0xc
jmp 0x1004dde8
test dword [esp + 0x5c], 1
je 0x1004ddd1
cmp edi, 0x1f
jg 0x1004ddd1
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x88]
test ecx, eax
jne 0x1004ddd1
mov edx, dword [esp + 0x64]
lea eax, [edx + edi]
push 0x1a
xor ecx, ecx
call fcn.10011470
add esp, 4
jmp 0x1004dde8
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
add eax, edi
push eax
push edi
push ecx
push ebx
push esi
call fcn.1002b6f0
add esp, 0x14
movsx edx, word [ebx + 0x22]
inc edi
cmp edi, edx
jl 0x1004dd63
test byte [esp + 0x5c], 1
je 0x1004dec4
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov edi, ebx
call fcn.10017c50
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0xe0]
push eax
mov eax, dword [esp + 0x68]
push ecx
push ebx
push 1
push edx
push 0x6e
push eax
push ebp
call fcn.1004fae0
add esp, 0x2c
cmp dword [esp + 0x24], 0
je 0x1004de65
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push esi
push 0x45
push edx
call fcn.10015fa0
jmp 0x1004de83
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push eax
push ecx
push edx
push 0x49
call fcn.100113f0
mov esi, dword [esp + 0x2c]
xor eax, eax
add esp, 0x10
xor edi, edi
cmp ax, word [ebx + 0x22]
jge 0x1004dec8
mov ecx, dword [esp + 0x30]
cmp dword [ecx + edi*4], 0
jge 0x1004deb9
movsx edx, word [ebx + 0x20]
cmp edi, edx
je 0x1004deb9
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
add eax, edi
push eax
push edi
push esi
push ebx
push ecx
call fcn.1002b6f0
add esp, 0x14
movsx edx, word [ebx + 0x22]
inc edi
cmp edi, edx
jl 0x1004de90
jmp 0x1004dec8
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x78], 0
jne 0x1004e051
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xdc]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x88]
push edx
push eax
push esi
push ecx
push ebx
xor edi, edi
push ebp
mov dword [esp + 0x88], edi
call fcn.1004c930
add esp, 0x2c
cmp dword [esp + 0x48], edi
je 0x1004df35
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push edi
push ecx
push ebx
push ebp
call fcn.10042530
add esp, 0x18
cmp dword [esp + 0x5c], 0
jne 0x1004df43
cmp byte [esp + 0x68], 0
je 0x1004df84
cmp dword [esp + 0x24], 0
je 0x1004df64
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
push edx
push esi
push 0x45
push eax
mov eax, dword [esp + 0x4c]
xor ecx, ecx
call fcn.10015fa0
jmp 0x1004df7f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push ecx
push 0
push edx
push 0x49
call fcn.100113f0
mov esi, dword [esp + 0x2c]
mov edi, eax
add esp, 0x10
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x54]
push eax
push ecx
push esi
push ebp
mov eax, ebx
call fcn.10031ba0
add esp, 0x10
cmp dword [esp + 0x48], 0
jne 0x1004dfaf
cmp byte [esp + 0x68], 0
jne 0x1004dfaf
cmp dword [esp + 0x24], 0
je 0x1004dfc7
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push 0x62
xor eax, eax
call fcn.10011470
mov esi, dword [esp + 0x20]
add esp, 4
cmp dword [esp + 0x5c], 0
jne 0x1004dfd5
cmp byte [esp + 0x68], 0
je 0x1004dfe6
mov esi, dword [esp + 0x18]
push edi
call fcn.100079d0
mov esi, dword [esp + 0x20]
add esp, 4
cmp dword [esp + 0x48], 0
je 0x1004e008
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
push 0
push ebx
push ebp
call fcn.10042530
add esp, 0x18
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x54]
push 0
push 0
push 1
push edx
push eax
push ecx
push esi
push ebx
push ebp
call fcn.1001af50
add esp, 0x24
cmp dword [esp + 0x48], 0
je 0x1004e051
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0xd8]
push eax
push ecx
push edx
push ebp
mov esi, ebx
call fcn.10022dd0
add esp, 0x14
mov eax, dword [esp + 0x50]
test byte [eax + 0x18], 0x80
je 0x1004e07e
cmp dword [ebp + 0x19c], 0
jne 0x1004e07e
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x18]
push 0x25
mov eax, 1
call fcn.10011470
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0x60]
push eax
push ebx
push 2
push ecx
push 0x6e
push edx
push ebp
call fcn.1004fae0
add esp, 0x24
cmp dword [esp + 0x34], 0
jne 0x1004e0ec
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
je 0x1004e0e0
push eax
mov ecx, esi
call fcn.10007900
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x64]
push 8
call fcn.10011470
add esp, 8
jmp 0x1004e0ec
push 0xe
xor ecx, ecx
call fcn.10011470
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.10007900
mov ebx, dword [ebx + 8]
add esp, 4
test ebx, ebx
je 0x1004e136
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
inc edx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
je 0x1004e12a
push 0x3d
xor eax, eax
mov ecx, edi
call fcn.10011470
add esp, 4
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x40]
inc edi
test ebx, ebx
jne 0x1004e113
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x54]
jge 0x1004e14c
push 0x3d
xor eax, eax
call fcn.10011470
add esp, 4
cmp byte [ebp + 0x12], 0
jne 0x1004e164
cmp dword [ebp + 0x19c], 0
jne 0x1004e164
push ebp
call fcn.10031ed0
add esp, 4
mov ecx, dword [esp + 0x50]
test byte [ecx + 0x18], 0x80
je 0x1004e1b0
cmp dword [ebp + 0x19c], 0
jne 0x1004e1b0
cmp byte [ebp + 0x12], 0
jne 0x1004e1b0
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x18]
push 0x21
mov eax, 1
call fcn.10011470
push 1
call fcn.10015fd0
push 0
push str.rows_updated
push 0
push 0
mov ecx, esi
call fcn.10019570
add esp, 0x18
pop edi
pop ebx
lea eax, [esp + 0x98]
call fcn.10009f10
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.10001ed0
mov edx, dword [esp + 0xc8]
push edx
push esi
call fcn.1000a550
mov eax, dword [esp + 0xd4]
push eax
push esi
call fcn.10012d50
mov ecx, dword [esp + 0xe0]
push ecx
push esi
call fcn.10012ab0
add esp, 0x18
pop esi
pop ebp
add esp, 0xb8
ret