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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x12], bl
mov dword [esp + 0x44], 0xffffffff
setne byte [esp + 0x11]
mov dword [esp + 0x3c], eax
call fcn.1005cba0
mov esi, eax
mov eax, dword [ebp + 0xc]
test byte [eax + 0x2a], 0x20
movsx ecx, word [eax + 0x22]
mov dword [esp + 0x50], ecx
jne 0x100523fd
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], 1
jmp 0x10052422
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x10052416
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x10052416
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x10052404
mov dword [esp + 0x24], eax
movzx eax, word [eax + 0x32]
mov dword [esp + 0x38], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp ecx, ebx
jle 0x100525e3
mov dword [esp + 0x30], ebx
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + 0x20]
cmp ebx, edx
je 0x100525cf
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x10052454
cmp dword [eax + ebx*4], 0
jl 0x100525cf
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x30]
movzx edi, byte [eax + ecx + 0xc]
add eax, ecx
test edi, edi
je 0x100525cf
mov cl, byte [ebp + 0x28]
cmp cl, 0xa
je 0x10052477
movzx edi, cl
jmp 0x1005247c
cmp edi, 0xa
je 0x10052487
cmp edi, 5
jne 0x1005248c
cmp dword [eax + 4], 0
jne 0x1005248c
mov edi, 2
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x10052498
jmp dword [eax*4 + 0x100538b4]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1a0]
test eax, eax
jne 0x100524ae
mov eax, ecx
mov byte [eax + 0x15], 1
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + edx]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push edx
push eax
push str._s._s
push ecx
call fcn.10005f90
mov edx, dword [ebp + 0x1c]
push 0xffffffffffffffff
push eax
lea ecx, [ebx + edx + 1]
push 0x513
mov eax, ecx
push 0x14
mov edx, edi
mov ecx, esi
call fcn.10024690
mov eax, dword [esi]
add esp, 0x20
cmp byte [eax + 0x45], 0
jne 0x100525cf
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 4]
lea ecx, [eax + eax*4]
mov byte [edx + ecx*4 - 0x11], 1
jmp 0x100525cf
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0x2c]
lea ebx, [ecx + eax + 1]
mov edx, 0x4c
mov eax, esi
call fcn.10024400
jmp 0x100525cb
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea ebx, [eax + edx + 1]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], ecx
jg 0x10052558
push 0
push 0
push ebx
push 0x4d
call fcn.10024290
add esp, 0x10
mov edi, eax
jmp 0x10052580
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x4d
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + edx + 4]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
call fcn.1003cbd0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
dec eax
add esp, 0xc
mov dword [ecx + 0x60], eax
mov eax, dword [esi + 0x20]
test edi, edi
jns 0x100525b0
lea edi, [eax - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x100525bf
mov ecx, 0x100d87f0
jmp 0x100525c8
mov edx, dword [esi + 4]
lea ecx, [edi + edi*4]
lea ecx, [edx + ecx*4]
mov dword [ecx + 8], eax
mov ebx, dword [esp + 0x14]
add dword [esp + 0x30], 0x10
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x50]
jl 0x10052434
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], edi
cmp edi, ecx
je 0x100527cd
mov edx, dword [esp + 0x3c]
test dword [edx + 0x18], 0x2000
jne 0x100527cd
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
inc eax
mov dword [edx + 0x64], eax
mov al, byte [ebp + 0x28]
cmp al, 0xa
je 0x10052622
movzx eax, al
mov dword [esp + 0x1c], eax
jmp 0x1005262a
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], ecx
cmp dword [edi], ecx
jle 0x100527cd
mov dword [esp + 0x34], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x34]
mov ecx, dword [edi + 4]
mov ecx, dword [edx + ecx]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x4c], ecx
test edx, edx
je 0x100526ab
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
xor al, al
mov byte [esp + 0x70], al
mov dword [esp + 0x60], 0x10052360
mov dword [esp + 0x74], edx
test ecx, ecx
je 0x1005269b
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.10035960
mov al, byte [esp + 0x78]
add esp, 8
cmp byte [ebp + 0x24], 0
jne 0x100526a3
and al, 0xfd
test al, al
je 0x100527b7
mov ebx, dword [esi + 0x18]
mov edi, dword [ebx + 0x74]
lea edx, [edi - 1]
lea ecx, [edi + 1]
mov dword [ebx + 0x74], ecx
test edi, edx
jne 0x100526d8
mov ecx, dword [ebx]
lea eax, [edi*8 + 4]
push 0
push eax
mov eax, dword [ebx + 0x78]
call fcn.100045e0
add esp, 8
mov dword [ebx + 0x78], eax
mov ebx, dword [ebx + 0x78]
test ebx, ebx
je 0x100526e6
mov dword [ebx + edi*4], 0xffffffff
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebp + 8]
or ebx, 0xffffffff
push 0x10
sub ebx, edi
push ebx
push ecx
push edx
mov dword [esp + 0x58], ebx
call fcn.1003d100
add esp, 0x10
cmp dword [esp + 0x1c], 4
jne 0x10052751
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x10052726
mov edx, dword [ebp + 0x2c]
push 0
push edx
push 0
push 0xd
call fcn.10024290
jmp 0x10052791
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x2c]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xd
jmp 0x10052794
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ecx + 4]
test eax, eax
jne 0x10052769
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ebx, dword [esp + 0x1c]
cmp ebx, 5
jne 0x1005277b
mov ebx, 2
mov dword [esp + 0x1c], ebx
push 3
push 0
push eax
mov eax, dword [ebp + 8]
push 0x113
call fcn.10048150
mov ebx, dword [esp + 0x58]
add esp, 0x10
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x100527ac
lea edx, [ebx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x50]
dec eax
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x34], 0x18
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [edi]
jl 0x10052640
cmp byte [ebp + 0x24], 0
je 0x10052be3
cmp dword [esp + 0x24], 0
jne 0x10052be3
mov ebx, dword [esi + 0x18]
mov edi, dword [ebx + 0x74]
lea edx, [edi - 1]
lea ecx, [edi + 1]
mov dword [ebx + 0x74], ecx
test edi, edx
jne 0x1005280f
mov ecx, dword [ebx]
lea eax, [edi*8 + 4]
push 0
push eax
mov eax, dword [ebx + 0x78]
call fcn.100045e0
add esp, 8
mov dword [ebx + 0x78], eax
mov ebx, dword [ebx + 0x78]
xor edx, edx
cmp ebx, edx
je 0x1005281f
mov dword [ebx + edi*4], 0xffffffff
mov ecx, dword [ebp + 0xc]
mov al, byte [ebp + 0x28]
or ebx, 0xffffffff
sub ebx, edi
movzx edi, byte [ecx + 0x2b]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c], edi
cmp al, 0xa
je 0x1005283f
movzx edi, al
jmp 0x10052849
cmp edi, 0xa
jne 0x1005284d
mov edi, 2
mov dword [esp + 0x1c], edi
cmp byte [esp + 0x11], dl
je 0x100528b4
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x10052873
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push edx
push ebx
push eax
push 0x4f
call fcn.10024290
add esp, 0x10
jmp 0x1005289c
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x20]
mov byte [eax + 3], dl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov word [eax], 0x4f
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
jne 0x100528b2
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x90
xor edx, edx
cmp edi, 5
jne 0x10052933
cmp byte [ebp + 0x28], 5
je 0x10052933
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp eax, edx
je 0x10052933
lea esp, [esp]
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x100528e6
cmp cl, 3
je 0x100528e6
mov eax, dword [eax + 0x14]
cmp eax, edx
jne 0x100528d0
jmp 0x10052933
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x10052903
push 0
push 0
push 0
push 0xd
call fcn.10024290
add esp, 0x10
jmp 0x1005292d
mov edi, dword [esi + 4]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0xd
mov eax, ecx
mov dword [esp + 0x54], eax
xor edx, edx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x10052953
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push edx
push ebx
push eax
push 0x46
call fcn.10024290
add esp, 0x10
jmp 0x1005297d
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov word [eax], 0x46
lea eax, [edi - 1]
cmp eax, 4
ja case.default.0x10052989
jmp dword [eax*4 + 0x100538c4]
mov edx, dword [esp + 0x3c]
mov ebx, dword [ebp + 8]
xor edi, edi
test dword [edx + 0x18], 0x40000
je 0x100529de
mov ecx, dword [ebx]
xor eax, eax
test dword [ecx + 0x18], 0x800000
je 0x100529bd
mov edx, dword [ebp + 0xc]
push edx
mov eax, ebx
call fcn.10064780
add esp, 4
mov ecx, eax
test eax, eax
je 0x100529d6
cmp byte [ecx + 8], 0x6d
jne 0x100529cf
movzx edx, byte [ecx + 9]
or edi, edx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x100529c3
neg edi
sbb edi, edi
and edi, eax
jne 0x10052a50
mov eax, dword [ebx]
test dword [eax + 0x18], 0x80000
je 0x10052a15
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 0x40]
lea ecx, [esp + 0x4c]
push ecx
push edx
add eax, 0x38
call fcn.10008530
add esp, 8
test eax, eax
je 0x10052a0c
cmp dword [eax + 8], 0
jne 0x10052a50
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
jne 0x10052a50
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x10052a84
mov eax, dword [ebx + 0x1a0]
test eax, eax
jne 0x10052a2a
mov eax, ebx
mov edx, dword [ebp + 0x18]
push 0xffffffffffffffff
push 0
mov byte [eax + 0x14], 1
mov eax, dword [ebp + 0x14]
push edx
push eax
push ebx
call fcn.1004a8a0
add esp, 0x14
mov dword [esp + 0x40], 1
jmp 0x10052b43
mov eax, dword [ebx + 0x1a0]
test eax, eax
jne 0x10052a5c
mov eax, ebx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov byte [eax + 0x14], 1
mov eax, dword [ebp + 0x14]
push eax
push edi
push ecx
push ebx
call fcn.1004a4a0
add esp, 0x2c
mov dword [esp + 0x40], 1
jmp 0x10052b43
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x10052ab0
mov eax, dword [ebp + 0x2c]
push 0
push eax
push 0
push 0xd
call fcn.10024290
jmp 0x10052b40
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x2c]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xd
jmp 0x10052b43
mov edi, 2
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x20]
test cx, cx
js 0x10052b15
mov edx, dword [eax + 4]
movsx ecx, cx
add ecx, ecx
mov ecx, dword [edx + ecx*8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax]
push edx
push str._s._s
push ecx
call fcn.10005f90
add esp, 0x10
mov ecx, 0x613
jmp 0x10052b30
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push str._s.rowid
push ecx
call fcn.10005f90
add esp, 0xc
mov ecx, 0xa13
push 2
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 8]
push ecx
mov ebx, edi
call fcn.10048150
add esp, 0x10
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x10052b5f
mov edx, dword [esp + 0x50]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x54]
dec eax
xor ebx, ebx
mov dword [ecx + 0x60], eax
cmp edi, ebx
je 0x10052be3
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], ecx
jg 0x10052b8a
push ebx
push ebx
push ebx
push 0xd
call fcn.10024290
add esp, 0x10
jmp 0x10052baf
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0xd
mov eax, ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
dec ecx
mov dword [esp + 0x58], eax
mov dword [edx + 0x60], ecx
mov ecx, dword [esi + 0x20]
mov eax, edi
cmp edi, ebx
jge 0x10052bc9
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], bl
je 0x10052bd7
mov eax, 0x100d87f0
jmp 0x10052be0
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x10053801
lea ecx, [ecx]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x10]
cmp dword [edx + ecx*4], 0
je 0x100537ea
cmp byte [esp + 0x12], 0
jne 0x10052c2e
mov eax, dword [ebp + 0x1c]
inc eax
push eax
mov eax, dword [ebp + 0xc]
push esi
call fcn.10050ac0
add esp, 8
mov byte [esp + 0x12], 1
mov ebx, dword [esi + 0x18]
mov edi, dword [ebx + 0x74]
mov edx, dword [esp + 0x30]
add edx, dword [ebp + 0x18]
lea ecx, [edi - 1]
lea eax, [edi + 1]
mov dword [esp + 0x34], edx
mov dword [ebx + 0x74], eax
test edi, ecx
jne 0x10052c66
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
lea edx, [edi*8 + 4]
push 0
push edx
call fcn.100045e0
add esp, 8
mov dword [ebx + 0x78], eax
mov ebx, dword [ebx + 0x78]
xor edx, edx
cmp ebx, edx
je 0x10052c76
mov dword [ebx + edi*4], 0xffffffff
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
sub eax, edi
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x24], edx
je 0x10052e63
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x30]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x18]
cmp dword [edi + 0x58], eax
jg 0x10052cb2
push 0
push ecx
push 0
push 0x19
call fcn.10024290
add esp, 0x10
jmp 0x10052cd5
lea edi, [eax + 1]
mov dword [esi + 0x20], edi
mov edi, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
mov byte [eax + 3], dl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x19
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov edi, dword [ecx]
inc edx
push 0
mov dword [ecx + 0x64], edx
mov eax, dword [eax + 0x24]
push 0
push eax
push edi
call fcn.10038b90
add esp, 0x10
cmp byte [edi + 0x45], 0
mov ebx, eax
jne 0x10052d12
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 8]
push 0x10
push ecx
push ebx
push edx
call fcn.1003d460
add esp, 0x10
test ebx, ebx
je 0x10052e55
test dword [ebx + 4], 0x4000
jne 0x10052db6
mov eax, dword [ebx + 0xc]
push eax
push edi
call fcn.10038a50
mov ecx, dword [ebx + 0x10]
push ecx
push edi
call fcn.10038a50
add esp, 0x10
test dword [ebx + 4], 0x10000
je 0x10052d8f
mov eax, dword [ebx + 8]
test eax, eax
je 0x10052d8f
cmp dword [edi + 0x1c8], 0
je 0x10052d60
mov ecx, edi
call fcn.100040f0
jmp 0x10052d8f
cmp eax, dword [edi + 0x120]
jb 0x10052d86
cmp eax, dword [edi + 0x124]
jae 0x10052d86
mov edx, dword [edi + 0x11c]
mov dword [eax], edx
dec dword [edi + 0x108]
mov dword [edi + 0x11c], eax
jmp 0x10052d8f
push eax
call sym.SQLite3Encrypt.dll_sqlite3_free
add esp, 4
test dword [ebx + 4], 0x800
je 0x10052da9
mov eax, dword [ebx + 0x14]
push 1
push eax
push edi
call fcn.100598f0
add esp, 0xc
jmp 0x10052db6
mov ecx, dword [ebx + 0x14]
push ecx
push edi
call fcn.10039850
add esp, 8
test dword [ebx + 4], 0x8000
jne 0x10052e55
cmp dword [edi + 0x1c8], 0
je 0x10052dd7
mov eax, ebx
mov ecx, edi
call fcn.100040f0
jmp 0x10052e55
cmp ebx, dword [edi + 0x120]
jb 0x10052dfd
cmp ebx, dword [edi + 0x124]
jae 0x10052dfd
mov edx, dword [edi + 0x11c]
mov dword [ebx], edx
dec dword [edi + 0x108]
mov dword [edi + 0x11c], ebx
jmp 0x10052e55
cmp dword [0x100d33d0], 0
je 0x10052e4b
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x10052e19
push eax
call dword [0x100d3428]
add esp, 4
push ebx
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push ebx
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x10052e55
push eax
call dword [0x100d3430]
jmp 0x10052e52
push ebx
call dword [0x100d33fc]
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x64], 0
mov eax, dword [ebp + 8]
movzx edx, word [ecx + 0x34]
mov edi, dword [eax + 0x3c]
mov ebx, dword [eax + 0x40]
mov dword [esp + 0x20], ebx
cmp edx, edi
jg 0x10052e84
add ebx, edx
sub edi, edx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x3c], edi
jmp 0x10052e93
mov edi, dword [eax + 0x4c]
lea ebx, [edi + 1]
add edx, edi
mov dword [esp + 0x20], ebx
mov dword [eax + 0x4c], edx
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], eax
cmp dx, word [ecx + 0x34]
jae 0x10053186
mov edi, dword [esp + 0x20]
mov dword [esp + 0x48], edi
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 4]
movsx eax, word [edx + eax*2]
cmp eax, 0xfffffffe
jne 0x100530e5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov edi, dword [ecx]
inc eax
mov dword [ecx + 0x64], eax
mov eax, dword [edx + 0x28]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx]
push 0
push 0
push eax
push edi
call fcn.10038b90
add esp, 0x10
cmp byte [edi + 0x45], 0
mov ebx, eax
jne 0x10052f06
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp + 8]
push ecx
push ebx
push edx
call fcn.1003cbd0
add esp, 0xc
test ebx, ebx
je 0x100530d5
test dword [ebx + 4], 0x4000
jne 0x10053014
mov eax, dword [ebx + 0xc]
push eax
push edi
call fcn.10038a50
mov ecx, dword [ebx + 0x10]
push ecx
push edi
call fcn.10038a50
add esp, 0x10
test dword [ebx + 4], 0x10000
je 0x10052fed
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10052fed
cmp dword [edi + 0x1c8], 0
je 0x10052f63
mov ecx, edi
call fcn.100040f0
jmp 0x10052fed
cmp eax, dword [edi + 0x120]
jb 0x10052f89
cmp eax, dword [edi + 0x124]
jae 0x10052f89
mov edx, dword [edi + 0x11c]
mov dword [eax], edx
dec dword [edi + 0x108]
mov dword [edi + 0x11c], eax
jmp 0x10052fed
cmp dword [0x100d33d0], 0
je 0x10052fdf
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x10052fa5
push eax
call dword [0x100d3428]
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
call dword [0x100d3404]
mov ecx, dword [esp + 0x30]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push ecx
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x10052fed
push eax
call dword [0x100d3430]
jmp 0x10052fea
mov edx, dword [esp + 0x2c]
push edx
call dword [0x100d33fc]
add esp, 4
test dword [ebx + 4], 0x800
je 0x10053007
mov eax, dword [ebx + 0x14]
push 1
push eax
push edi
call fcn.100598f0
add esp, 0xc
jmp 0x10053014
mov ecx, dword [ebx + 0x14]
push ecx
push edi
call fcn.10039850
add esp, 8
test dword [ebx + 4], 0x8000
jne 0x100530d5
cmp dword [edi + 0x1c8], 0
je 0x10053046
mov eax, ebx
mov ecx, edi
call fcn.100040f0
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x48]
mov dword [eax + 0x64], 0
jmp 0x10053163
cmp ebx, dword [edi + 0x120]
jb 0x1005307d
cmp ebx, dword [edi + 0x124]
jae 0x1005307d
mov edx, dword [edi + 0x11c]
mov eax, dword [ebp + 8]
mov dword [ebx], edx
dec dword [edi + 0x108]
mov dword [edi + 0x11c], ebx
mov edi, dword [esp + 0x48]
mov dword [eax + 0x64], 0
jmp 0x10053163
cmp dword [0x100d33d0], 0
je 0x100530cb
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x10053099
push eax
call dword [0x100d3428]
add esp, 4
push ebx
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push ebx
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x100530d5
push eax
call dword [0x100d3430]
jmp 0x100530d2
push ebx
call dword [0x100d33fc]
add esp, 4
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x48]
mov dword [eax + 0x64], 0
jmp 0x10053163
cmp eax, 0xffffffff
je 0x100530fe
mov edx, dword [ebp + 0xc]
movsx edx, word [edx + 0x20]
cmp eax, edx
je 0x100530fe
mov ecx, dword [ebp + 0x1c]
lea edx, [eax + ecx + 1]
jmp 0x10053119
cmp dword [esp + 0x44], edi
je 0x10053167
cmp dword [ecx + 0x24], 0
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
jne 0x10053119
mov dword [esp + 0x44], edi
mov ebx, dword [esi + 0x18]
xor ecx, ecx
test eax, eax
mov eax, dword [esi + 0x20]
sets cl
add ecx, 0x1f
cmp dword [ebx + 0x58], eax
jg 0x1005313d
push 0
push edi
push edx
push ecx
call fcn.10024290
add esp, 0x10
jmp 0x10053163
lea ebx, [eax + 1]
mov dword [esi + 0x20], ebx
mov ebx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov byte [eax], cl
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx edx, word [ecx + 0x34]
add dword [esp + 0x1c], 0x18
inc eax
inc edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], edi
cmp eax, edx
jl 0x10052eb1
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x30]
mov edx, dword [eax + edx*4]
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x18]
movzx ecx, word [ecx + 0x34]
cmp dword [edi + 0x58], eax
jg 0x100531b2
mov eax, dword [esp + 0x20]
push edx
push ecx
push eax
push 0x31
call fcn.10024290
add esp, 0x10
jmp 0x100531de
lea edi, [eax + 1]
mov dword [esi + 0x20], edi
mov edi, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x20]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov word [eax], 0x31
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + 0x34]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x20]
mov eax, ebx
call fcn.1003b510
cmp byte [esp + 0x11], 0
je 0x10053233
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x18]
jne 0x10053233
cmp byte [ebp + 0x24], 0
jne 0x10053233
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x10053227
mov edx, dword [esp + 0x28]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x60], eax
jmp 0x100537ea
mov edi, dword [esp + 0x18]
movzx eax, byte [edi + 0x36]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10053268
mov eax, dword [ebp + 8]
mov ecx, edi
movzx ebx, word [ecx + 0x34]
mov edi, dword [esp + 0x20]
mov ecx, ebx
call fcn.1003b510
mov edx, eax
cmp ebx, dword [edx + 0x3c]
jle 0x1005320b
mov ecx, edi
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ecx
jmp 0x1005320b
mov cl, byte [ebp + 0x28]
cmp cl, 0xa
je 0x10053279
movzx ecx, cl
mov dword [esp + 0x1c], ecx
jmp 0x10053286
cmp eax, 0xa
jne 0x10053286
mov dword [esp + 0x1c], 2
movzx edx, word [edi + 0x32]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push 0x43
mov ecx, esi
call fcn.100247f0
add esp, 0xc
cmp edi, dword [esp + 0x24]
jne 0x100532b4
mov edi, dword [esp + 0x20]
mov dword [esp + 0x2c], edi
jmp 0x100532e0
mov eax, dword [ebx + 0x3c]
mov edx, dword [esp + 0x38]
mov ecx, dword [ebx + 0x40]
cmp edx, eax
jg 0x100532cf
lea edi, [ecx + edx]
sub eax, edx
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x3c], eax
jmp 0x100532da
mov eax, dword [ebx + 0x4c]
lea ecx, [eax + 1]
add eax, edx
mov dword [ebx + 0x4c], eax
mov edi, ecx
mov dword [esp + 0x2c], ecx
cmp byte [esp + 0x11], 0
jne 0x100532f2
cmp dword [esp + 0x1c], 5
jne 0x1005366b
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x2a], 0x20
jne 0x100533c2
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005331e
mov eax, dword [esp + 0x34]
push 0
push edi
push eax
push 0x71
call fcn.10024290
add esp, 0x10
jmp 0x10053348
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x34]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x71
cmp byte [esp + 0x11], 0
je 0x1005366b
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x10053374
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edi
push 0x4f
call fcn.10024290
add esp, 0x10
jmp 0x100533a3
mov ecx, dword [esi + 4]
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x28]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x20]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x4f
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
jne 0x1005366b
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x90
jmp 0x1005366b
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x18], eax
je 0x10053499
xor edx, edx
mov dword [esp + 0x14], 0
cmp dx, word [eax + 0x32]
jae 0x10053499
mov ebx, dword [esp + 0x2c]
jmp 0x100533f0
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx + 0x34]
xor eax, eax
test edx, edx
jle 0x10053421
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
mov edi, dword [esp + 0x14]
movzx edi, word [ecx + edi*2]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
cmp di, word [ecx]
je 0x10053445
inc eax
add ecx, 2
cmp eax, edx
jl 0x10053414
or eax, 0xffffffff
mov edx, dword [esi + 0x18]
movsx ecx, ax
mov eax, dword [esi + 0x20]
cmp dword [edx + 0x58], eax
jg 0x1005344a
mov eax, dword [esp + 0x34]
push ebx
push ecx
push eax
push 0x2f
call fcn.10024290
add esp, 0x10
jmp 0x10053476
movzx eax, ax
jmp 0x10053424
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x34]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0
mov word [eax], 0x2f
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
movzx edx, word [ecx + 0x32]
inc eax
inc ebx
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x100533f0
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
mov eax, ecx
cmp byte [esp + 0x11], 0
je 0x1005366b
movzx eax, word [eax + 0x32]
mov ecx, dword [esi + 0x20]
add ecx, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x38]
and dl, 3
mov dword [esp + 0x48], 0x4e
cmp dl, 2
jne 0x100534d2
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], ecx
jmp 0x100534d6
mov dword [esp + 0x50], edi
mov dword [esp + 0x14], 0
test eax, eax
jle 0x1005366b
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov edi, dword [eax + edx*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x42]
mov bl, byte [eax + 0x95]
mov byte [esp + 0x13], cl
test edi, edi
je 0x1005351e
movzx edx, bl
push edx
push edi
push eax
call fcn.10049040
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x10053521
mov eax, dword [eax + 8]
test eax, eax
je 0x10053531
movzx ecx, byte [esp + 0x13]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
mov dword [esp + 0x34], eax
test bl, bl
jne 0x1005355c
test eax, eax
je 0x10053543
cmp dword [eax + 0xc], 0
jne 0x1005355c
mov edx, dword [ebp + 8]
mov cl, byte [esp + 0x13]
push edi
push edx
call fcn.10048f60
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
movzx ecx, word [ecx + 0x32]
movsx eax, word [eax + edx*2]
dec ecx
cmp edx, ecx
jne 0x10053580
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 0x4f
mov ecx, dword [ebp + 0x20]
lea edi, [ecx + eax + 1]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x100535b0
mov ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
push edi
push ecx
call fcn.10024290
add esp, 0x10
jmp 0x100535e9
mov ebx, dword [esi + 4]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [ebx + eax*4]
mov bl, byte [esp + 0x48]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x50]
add edi, edx
mov byte [eax], bl
mov byte [eax + 3], 0
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x10053601
mov ecx, dword [esp + 0x34]
mov eax, 0xfffffffc
call fcn.10024cd0
jmp 0x10053639
test eax, eax
jns 0x10053609
mov eax, dword [esi + 0x20]
dec eax
mov edx, dword [esi + 4]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
mov eax, dword [esp + 0x34]
lea ecx, [edx + ecx*4]
je 0x1005362e
push eax
push esi
mov eax, 0xfffffffc
call fcn.10024ec0
add esp, 8
jmp 0x10053639
test eax, eax
je 0x10053639
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfc
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
jne 0x1005364f
mov eax, dword [esi + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + edx*4 - 0x11], 0x90
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
movzx edx, word [ecx + 0x32]
inc eax
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x100534e6
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ecx
jle 0x100536e1
cmp eax, 3
jle 0x100536ca
cmp eax, 4
jne 0x100536e1
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005369f
mov eax, dword [ebp + 0x2c]
push ecx
push eax
push ecx
push 0xd
call fcn.10024290
add esp, 0x10
jmp 0x10053779
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [ebp + 0x2c]
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xd
jmp 0x10053779
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ebx
call fcn.100481f0
add esp, 8
jmp 0x10053779
mov eax, dword [ebx + 0x1a0]
xor edi, edi
test eax, eax
jne 0x100536ef
mov eax, ebx
mov ecx, dword [esp + 0x3c]
mov byte [eax + 0x14], 1
test dword [ecx + 0x18], 0x40000
je 0x1005373c
mov edx, dword [ebx]
xor edi, edi
xor eax, eax
test dword [edx + 0x18], 0x800000
je 0x1005371d
mov eax, dword [ebp + 0xc]
push eax
mov eax, ebx
call fcn.10064780
add esp, 4
mov ecx, eax
test eax, eax
je 0x10053736
cmp byte [ecx + 8], 0x6d
jne 0x1005372f
movzx edx, byte [ecx + 9]
or edi, edx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10053723
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
sete cl
movzx edx, cl
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [ebp + 0x18]
push 5
push 0
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push edi
push ecx
push ebx
call fcn.1004a4a0
add esp, 0x2c
mov dword [esp + 0x40], 1
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x10053795
mov edx, dword [esp + 0x28]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x20]
dec eax
mov dword [ecx + 0x60], eax
mov ecx, dword [esp + 0x18]
movzx ebx, word [ecx + 0x34]
mov eax, dword [ebp + 8]
mov ecx, ebx
call fcn.1003b510
mov edx, eax
cmp ebx, dword [edx + 0x3c]
jle 0x100537c1
mov ecx, edi
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ecx
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x2c], edx
je 0x100537ea
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, ebx
call fcn.1003b510
cmp ebx, dword [eax + 0x3c]
jle 0x100537ea
mov ecx, ebx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], edi
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x14]
inc dword [esp + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10052c00
mov eax, dword [esp + 0x54]
xor edi, edi
cmp eax, edi
je 0x100538a4
mov edx, dword [esi + 0x18]
lea ecx, [eax + 1]
mov eax, dword [esi + 0x20]
cmp dword [edx + 0x58], eax
jg 0x1005382c
push edi
push ecx
push edi
push 0xd
call fcn.10024290
add esp, 0x10
jmp 0x10053850
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov word [eax], 0xd
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
dec eax
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esi + 0x20]
cmp eax, edi
jge 0x10053868
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x10053888
mov eax, 0x100d87f0
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov dword [edx], eax
pop ebx
mov esp, ebp
pop ebp
ret