Function at 0x1006b140
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x308
mov ecx, dword [esp + 0x318]
push ebx
mov ebx, dword [esp + 0x310]
push ebp
mov ebp, dword [ebx + 0xc]
push esi
mov esi, dword [esp + 0x31c]
xor eax, eax
cmp word [esi], 0x40
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
jbe 0x1006b18e
push 0x40
push str.at_most__d_tables_in_a_join
mov esi, ebx
call fcn.10054d60
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x308
ret
cmp ecx, eax
je 0x1006b198
mov eax, dword [ecx]
mov dword [esp + 0x5c], eax
push edi
push 0x104
lea ecx, [esp + 0x218]
push 0
push ecx
call fcn.1007f650
lea edx, [esp + 0x220]
mov ecx, ebx
lea eax, [esp + 0x78]
call fcn.1004a570
mov edx, dword [esp + 0x330]
push 0x3d
push edx
push eax
call fcn.10053150
movsx edi, word [esi]
mov eax, dword [ebx]
imul edi, edi, 0x4c
add esp, 0x18
add edi, 0x68
mov dword [esp + 0x40], eax
call fcn.1004fcd0
mov ecx, dword [esp + 0x40]
cmp byte [ecx + 0x1e], 0
mov edi, eax
mov dword [esp + 0x5c], edi
jne 0x1006b297
movsx edx, word [esi]
mov eax, ebp
mov dword [edi + 0x14], edx
mov dword [edi], ebx
mov dword [edi + 4], esi
call fcn.1004ddb0
cmp dword [esp + 0x324], 0
mov dword [edi + 0x10], eax
je 0x1006b246
cmp word [esi], 0
je 0x1006b22f
mov ecx, dword [esp + 0x324]
call fcn.1004e890
test eax, eax
je 0x1006b246
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x324]
push 8
push eax
push ecx
push ebx
call fcn.10063f50
add esp, 0x10
xor edx, edx
xor ebx, ebx
cmp dx, word [esi]
jge 0x1006b27f
lea eax, [esi + 0x20]
mov dword [esp + 0x10], eax
jmp 0x1006b260
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
lea eax, [esp + 0x214]
call fcn.1004a5c0
movsx edx, word [esi]
add dword [esp + 0x10], 0x30
inc ebx
cmp ebx, edx
jl 0x1006b260
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.100611d0
mov ecx, dword [esp + 0x48]
add esp, 8
cmp byte [ecx + 0x1e], 0
je 0x1006b2b8
lea edx, [esp + 0x6c]
push edx
call fcn.10053060
add esp, 4
mov ebx, edi
call fcn.1004f8e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x308
ret
or eax, 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
movsx eax, word [esi]
xor ecx, ecx
add edi, 0x1c
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
jle 0x1006b56f
jmp 0x1006b2f0
mov ebx, dword [esp + 0x14]
fld qword [0x100c35b0]
mov esi, dword [esp + 0x320]
fstp qword [esp + 0x64]
xor ecx, ecx
lea edx, [ebx + ebx*2]
shl edx, 4
cmp ebx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
lea edi, [edx + esi + 8]
jge 0x1006b4c6
mov edx, dword [esp + 0x5c]
mov eax, ebx
imul eax, eax, 0x4c
lea eax, [eax + edx + 0x64]
mov dword [esp + 0x44], eax
jmp 0x1006b342
xor ecx, ecx
test byte [edi + 0x15], 0xa
mov eax, 0
setne al
mov dword [esp + 0x54], eax
cmp dword [esp + 0x24], ecx
je 0x1006b360
cmp eax, ecx
jne 0x1006b4c6
mov esi, dword [edi + 0x18]
lea edx, [esp + 0x214]
call fcn.1004a590
and eax, dword [esp + 0x30]
and edx, dword [esp + 0x34]
or eax, edx
jne 0x1006b38e
cmp ebx, dword [esp + 0x14]
jne 0x1006b4ab
inc dword [esp + 0x14]
jmp 0x1006b4ab
mov ecx, dword [edi + 0xc]
cmp byte [ecx + 0x39], 0
je 0x1006b413
mov eax, dword [esp + 0x328]
test eax, eax
je 0x1006b3a6
mov eax, dword [eax]
jmp 0x1006b3a8
xor eax, eax
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
xor edx, edx
cmp dword [esp + 0x48], edx
push esi
sete dl
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x32c]
push ecx
push edi
lea edx, [esp + 0x84]
push edx
push eax
call fcn.10059640
mov ecx, dword [esi]
xor eax, eax
add esp, 0x20
mov dword [esp + 0x10], 0x800000
cmp ecx, eax
je 0x1006b3f8
cmp dword [ecx + 0x20], eax
je 0x1006b3f8
mov dword [esp + 0x10], 0x900000
fld qword [0x100c2b10]
mov dword [esp + 0x50], eax
fcom st(1)
mov dword [esp + 0x4c], eax
fnstsw ax
test ah, 5
jp 0x1006b462
fstp st(1)
jmp 0x1006b464
cmp dword [esp + 0x48], 0
jne 0x1006b429
mov eax, dword [esp + 0x328]
test eax, eax
je 0x1006b429
mov eax, dword [eax]
jmp 0x1006b42b
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x58]
push ecx
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x330]
push eax
push edi
lea ecx, [esp + 0x88]
push ecx
push edx
call fcn.100657d0
add esp, 0x24
xor ecx, ecx
jmp 0x1006b464
fstp st(0)
fld qword [esp + 0x64]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1006b4a2
mov eax, dword [esp + 0x50]
fstp qword [esp + 0x64]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ebx
mov dword [edx + 0x44], ecx
jmp 0x1006b4a4
fstp st(0)
cmp dword [esp + 0x54], 0
jne 0x1006b4c6
mov eax, dword [esp + 0x320]
movsx ecx, word [eax]
add dword [esp + 0x44], 0x4c
inc ebx
add edi, 0x30
cmp ebx, ecx
jl 0x1006b340
mov ecx, dword [esp + 0x38]
test ecx, 0x100000
je 0x1006b4df
mov edx, dword [esp + 0x328]
mov dword [edx], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
and dword [esp + 0x2c], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x38], edx
xor edx, edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x40], edx
mov dword [eax + 0x3c], edx
cmp ecx, edx
je 0x1006b516
mov ecx, dword [esp + 0x31c]
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x18], edx
inc dword [ecx + 0x44]
jmp 0x1006b51d
mov dword [eax + 0x18], 0xffffffff
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x320]
lea eax, [edi + edi*2]
shl eax, 4
mov esi, dword [eax + ebx + 0x20]
lea edx, [esp + 0x214]
call fcn.1004a590
mov ecx, dword [esp + 0x48]
not eax
and dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [eax], edi
add eax, 0x4c
mov dword [esp + 0x18], eax
movsx eax, word [ebx]
not edx
and dword [esp + 0x34], edx
inc ecx
cmp ecx, eax
mov dword [esp + 0x48], ecx
jl 0x1006b2f0
mov edi, dword [esp + 0x20]
test dword [esp + 0x2c], 0x400000
je 0x1006b58a
mov eax, dword [esp + 0x328]
test eax, eax
je 0x1006b58a
mov dword [eax], 0
mov eax, dword [esp + 0x31c]
or ebx, 0xffffffff
call fcn.1005f630
mov edx, dword [esp + 0x320]
xor ecx, ecx
cmp cx, word [edx]
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], edi
jge 0x1006b7f8
jmp 0x1006b5c4
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x31c]
cmp byte [ecx + 0xb0], 2
mov eax, dword [edi + 0x18]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
jne 0x1006b69b
mov eax, dword [edi]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x320]
shl edx, 4
mov ecx, dword [edx + eax + 0xc]
lea esi, [edx + eax + 8]
push ecx
push str.TABLE__s
call fcn.10054c70
mov esi, dword [esi + 8]
add esp, 8
test esi, esi
je 0x1006b61e
push esi
push eax
push str._z_AS__s
call fcn.10054c70
add esp, 0xc
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1006b638
mov edx, dword [ecx]
push edx
push eax
push str._z_WITH_INDEX__s
call fcn.10054c70
add esp, 0xc
jmp 0x1006b66e
test dword [edi + 4], 0x300
je 0x1006b651
push eax
push str._z_USING_PRIMARY_KEY
call fcn.10054c70
add esp, 8
jmp 0x1006b66e
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1006b66e
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x14]
push edx
push ecx
push eax
push str._z_VIRTUAL_TABLE_INDEX__d:_s
call fcn.10054c70
add esp, 0x10
test dword [edi + 4], 0x100000
je 0x1006b685
push eax
push str._z_ORDER_BY
call fcn.10054c70
add esp, 8
mov ecx, dword [edi]
mov edx, dword [esp + 0x48]
push 0xffffffffffffffff
push eax
push 0x6d
push ebp
xor eax, eax
call fcn.100517a0
add esp, 0x10
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [esp + 0x320]
mov edx, dword [esp + 0x31c]
lea eax, [eax + eax*2]
shl eax, 4
mov ebx, dword [eax + ecx + 0x14]
mov esi, dword [ebx + 0x4c]
lea edi, [eax + ecx + 8]
mov ecx, dword [edx]
call fcn.10049f80
cmp byte [ebx + 0x35], 0
mov dword [esp + 0x14], eax
jne 0x1006b7d4
cmp dword [ebx + 0x18], 0
jne 0x1006b7d4
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x44], 0
je 0x1006b703
mov eax, dword [ebx + 0x40]
mov edx, dword [edi + 0x18]
push 0xfffffffffffffff6
push eax
push 0x1e
push ebp
xor eax, eax
xor ecx, ecx
call fcn.100517a0
add esp, 0x10
jmp 0x1006b778
test dword [eax + 4], 0x80000
mov ecx, dword [esp + 0x14]
jne 0x1006b760
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x31c]
push 0xc
push ebx
push ecx
push edx
call fcn.10057660
add esp, 0x10
cmp dword [ebx + 4], 0x40
jae 0x1006b778
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x1006b74d
jmp 0x1006b740
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x1006b740
mov eax, ebp
call fcn.10048690
mov ecx, eax
dec ecx
mov eax, ebp
call fcn.100486c0
jmp 0x1006b778
mov eax, dword [ebx]
mov ebx, dword [ebx + 0x14]
mov esi, dword [esp + 0x31c]
push eax
push 0
push ecx
call fcn.1004ea50
add esp, 0xc
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x10]
mov edx, dword [edi + 0x18]
mov dword [eax + 0x14], edx
test esi, esi
je 0x1006b7c4
mov eax, dword [esp + 0x31c]
push esi
push eax
call fcn.10064490
mov edi, dword [esp + 0x5c]
mov ecx, dword [esi + 0x14]
push 0xfffffffffffffff7
push eax
mov eax, dword [esp + 0x24]
push 0xc
push ebp
mov edx, edi
call fcn.100517a0
mov eax, dword [esi + 4]
add esp, 0x18
inc eax
mov ecx, edi
mov edx, 0x61
mov esi, ebp
call fcn.1004dda0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x31c]
call fcn.1005f630
mov ecx, dword [esp + 0x320]
mov eax, dword [esp + 0x48]
movsx edx, word [ecx]
add dword [esp + 0x18], 0x4c
inc eax
cmp eax, edx
mov dword [esp + 0x48], eax
jl 0x1006b5c0
mov edi, dword [esp + 0x20]
mov eax, ebp
call fcn.10048690
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 8], eax
or eax, 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x320]
xor edx, edx
cmp dx, word [eax]
mov dword [esp + 0x48], 0
jge 0x1006c43d
jmp 0x1006b830
mov eax, dword [edi]
mov edx, dword [esp + 0x320]
lea ecx, [eax + eax*2]
shl ecx, 4
mov eax, dword [ecx + edx + 0x20]
lea esi, [ecx + edx + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], ecx
mov ecx, eax
shr eax, 0x13
and eax, 1
shr ecx, 0x15
and ecx, 1
mov dword [esp + 0x54], eax
mov eax, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
call fcn.1004ddb0
mov dword [esp + 0x38], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov eax, ebp
call fcn.1004ddb0
cmp dword [edi], 0
mov dword [edi + 0x24], eax
mov dword [esp + 0x58], eax
jle 0x1006b8b8
test byte [esi + 0x15], 8
je 0x1006b8b8
mov eax, dword [esp + 0x31c]
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
xor ecx, ecx
lea edx, [ecx + 0x2e]
mov esi, ebp
mov dword [edi + 0xc], eax
call fcn.1004dda0
mov ebx, dword [edi + 0x44]
test ebx, ebx
je 0x1006ba45
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
lea esi, [eax + 2]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x31c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x54], esi
call fcn.10049390
mov dword [esp + 0x14], eax
mov eax, 1
cmp dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
jl 0x1006b96e
mov edx, dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x1006b961
lea ecx, [ecx]
cmp dword [edx + esi*8], ecx
je 0x1006b91c
inc esi
cmp esi, eax
jl 0x1006b910
jmp 0x1006b961
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx + 1]
mov ecx, dword [esp + 0x24]
push edx
lea eax, [esi + esi*2]
mov eax, dword [ecx + eax*4 + 8]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + edx*8]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x320]
push edx
push eax
call fcn.10067d70
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
add esp, 0xc
cmp esi, eax
je 0x1006b96e
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jle 0x1006b907
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x14]
mov edx, 0x2e
mov esi, ebp
call fcn.1004dda0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
dec ecx
mov edx, 0x2e
call fcn.1004dda0
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov esi, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0xfffffffe
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
push 0x63
push ebp
mov eax, esi
call fcn.100517a0
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x32c]
push esi
call fcn.100493c0
xor eax, eax
add esp, 0x14
cmp dword [ebx], eax
mov dword [ebx + 0x1c], eax
mov dword [esp + 0x1c], eax
jle 0x1006ba2b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
add eax, 8
add ecx, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
je 0x1006ba14
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov edx, dword [esp + 0x7c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
mov esi, edi
call fcn.1004a7f0
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], 8
add dword [esp + 0x14], 0xc
inc eax
cmp eax, dword [ebx]
mov dword [esp + 0x1c], eax
jl 0x1006b9f4
mov eax, dword [esp + 0x20]
mov dword [edi + 0x30], eax
mov eax, ebp
mov dword [edi + 0x2c], 1
call fcn.10048690
jmp 0x1006c334
mov eax, dword [edi + 4]
test eax, 0x100
je 0x1006bad6
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push 0
push 3
push ecx
push edx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.10065510
mov ebx, dword [esp + 0x338]
mov edx, eax
mov eax, ebx
call fcn.10049350
mov esi, eax
push esi
push edx
push ebx
mov ebx, edi
mov dword [esp + 0x4c], esi
call fcn.1006af30
mov ebx, dword [edi + 0x20]
push 1
push ebx
push esi
push 0x24
mov esi, ebp
call fcn.1004dd10
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
push ebx
push eax
push 0x2c
call fcn.1004dd10
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x364]
add esp, 0x48
call fcn.10049370
mov dword [edi + 0x2c], 0x16
jmp 0x1006c337
test eax, 0x200
je 0x1006bccd
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
push 0
push 0x24
push ebx
push esi
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x30], 0x16
call fcn.10065510
push 0
push 0x18
push ebx
push esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.10065510
add esp, 0x38
cmp dword [esp + 0x28], 0
mov dword [esp + 0x10], eax
je 0x1006bb43
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x2c], 0
je 0x1006bbd5
mov edx, dword [esp + 0x2c]
mov esi, dword [edx]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esp + 0x31c]
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.1004e920
mov ebx, eax
mov al, byte [esi]
add esp, 8
cmp al, 0x46
je 0x1006bb7c
cmp al, 0x45
je 0x1006bb7c
xor eax, eax
jmp 0x1006bb81
mov eax, 1
mov edx, dword [esp + 0x38]
push eax
push edx
push ebx
push 0x6b
mov esi, ebp
call fcn.1004dd10
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x3c]
mov edx, ebx
neg edx
sbb edx, edx
push eax
and edx, 0xffffffea
push ecx
add edx, 0x74
push edx
call fcn.1004dd10
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x33c]
add esp, 0x20
call fcn.10049370
mov eax, dword [esp + 0x2c]
mov esi, edi
call fcn.1004a7f0
jmp 0x1006bbf6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
neg edx
sbb edx, edx
and edx, 0xffffffbf
add edx, 0x73
mov esi, ebp
call fcn.1004dda0
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1006bc53
mov esi, dword [eax]
mov ecx, dword [esp + 0x31c]
inc dword [ecx + 0x48]
mov eax, dword [ecx + 0x48]
push eax
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call fcn.10067d70
mov al, byte [esi]
add esp, 0xc
cmp al, 0x47
je 0x1006bc39
cmp al, 0x45
je 0x1006bc39
xor ecx, ecx
test ebx, ebx
setne cl
lea ecx, [ecx + ecx + 0x45]
mov dword [esp + 0x14], ecx
jmp 0x1006bc48
xor edx, edx
test ebx, ebx
sete dl
lea edx, [edx + edx + 0x46]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov esi, edi
call fcn.1004a7f0
mov eax, ebp
call fcn.10048690
mov ecx, dword [esp + 0x20]
neg ebx
sbb ebx, ebx
and ebx, 0xffffffc9
add ebx, 0x66
cmp dword [esp + 0x14], 0x16
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
je 0x1006c337
mov eax, dword [esp + 0x31c]
call fcn.10049350
mov ecx, dword [esp + 0x20]
mov edx, 0x26
mov esi, ebp
mov ebx, eax
call fcn.1004dda0
mov edx, dword [esp + 0x38]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x14]
push ebx
push edx
push eax
push ecx
call fcn.1004dd10
add esp, 0x10
mov dl, 0x6b
mov eax, ebp
call fcn.10048700
mov eax, dword [esp + 0x31c]
mov edx, ebx
call fcn.10049370
jmp 0x1006c337
test eax, 0x2000
je 0x1006c153
mov edx, dword [esp + 0x34]
mov ebx, dword [edi + 0x38]
mov esi, eax
shr eax, 0x11
and eax, 1
push 2
push edx
mov edx, dword [esp + 0x324]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x78]
shr esi, 0x10
push ecx
and esi, 1
push edx
mov eax, edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x54], 0
call fcn.1006b050
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0x28]
add esp, 0x14
cmp byte [ebx + eax], 0
jne 0x1006bd40
mov edx, 0x18
mov dword [esp + 0x10], 0x24
jmp 0x1006bd5b
mov eax, esi
mov esi, dword [esp + 0x2c]
mov edx, 0x24
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x32c], 1
jne 0x1006bd8f
test dword [edi + 4], 0x100000
je 0x1006bd8f
cmp dword [ecx + 4], ebx
jle 0x1006bd8f
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 0x28]
cmp eax, dword [ecx + ebx*4]
jne 0x1006bd8f
mov dword [esp + 0x40], 1
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x3c], ecx
test esi, esi
je 0x1006bf1a
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0x4c]
mov ecx, dword [ecx + esi*4]
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.10065510
mov ebx, eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
add esi, eax
mov eax, dword [esp + 0x338]
push esi
push edx
push eax
call fcn.10067d70
mov eax, dword [esp + 0x64]
mov ecx, esi
add esp, 0x28
mov edx, 0x41
mov esi, ebp
call fcn.1004dda0
movzx eax, word [ebx + 0xa]
and eax, 0x28
mov dword [esp + 0x44], eax
mov eax, ebx
mov esi, edi
call fcn.1004a7f0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], 0x3a
cmp dword [esp + 0x40], 0
mov ecx, dword [esp + 0x4c]
lea ebx, [esi + ecx]
je 0x1006be4a
test esi, esi
jne 0x1006be4a
mov edx, dword [esp + 0x50]
lea eax, [ebx + edx]
lea edx, [esi + 0x70]
xor ecx, ecx
mov esi, ebp
call fcn.1004dda0
inc ebx
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [edi + 8]
push ebp
mov ecx, ebx
call fcn.100532b0
add esp, 8
cmp dword [esp + 0x28], 0
je 0x1006be8f
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x48]
neg ecx
sbb ecx, ecx
push edx
and ecx, 0xffffffe1
push eax
add ecx, 0x5e
push ecx
mov esi, ebp
call fcn.1004dd10
add esp, 0x10
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x2c], 0
je 0x1006bf78
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
mov esi, dword [esp + 0x4c]
mov ecx, dword [edx + esi*4]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.10065510
mov ebx, eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
add esi, eax
mov eax, dword [esp + 0x338]
push esi
push edx
push eax
call fcn.10067d70
mov eax, dword [esp + 0x64]
mov ecx, esi
add esp, 0x28
mov edx, 0x41
mov esi, ebp
call fcn.1004dda0
movzx eax, word [ebx + 0xa]
and eax, 0x28
mov dword [esp + 0x10], eax
mov eax, ebx
mov esi, edi
call fcn.1004a7f0
mov ebx, dword [esp + 0x4c]
jmp 0x1006bf80
xor eax, eax
test ebx, ebx
setle al
mov dword [esp + 0x44], 1
dec eax
and eax, 0x24
add eax, 0x16
mov dword [esp + 0x14], eax
cmp eax, 0x16
jne 0x1006be1c
cmp dword [esp + 0x40], 0
je 0x1006bf54
cmp dword [esp + 0x28], 0
jne 0x1006be1c
jmp 0x1006be93
cmp dword [esp + 0x28], 0
je 0x1006be93
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, 0x32
mov esi, ebp
call fcn.1004dda0
jmp 0x1006be93
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x2c]
test ebx, ebx
jg 0x1006bf98
test eax, eax
jne 0x1006bf98
cmp dword [esp + 0x40], eax
je 0x1006bfdd
cmp dword [esp + 0x28], eax
jne 0x1006bfe4
add ebx, eax
cmp dword [esp + 0x40], 0
mov dword [esp + 0x38], ebx
je 0x1006bfc9
test eax, eax
jne 0x1006bfc9
mov ecx, dword [esp + 0x50]
lea eax, [ebx + ecx]
xor ecx, ecx
lea edx, [ecx + 0x70]
mov esi, ebp
call fcn.1004dda0
inc ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], 0
cmp dword [esp + 0x28], 0
je 0x1006c004
mov ebx, dword [edi + 8]
mov dword [esp + 0x14], 0x27
jmp 0x1006c012
cmp dword [esp + 0x28], 0
je 0x1006bfee
mov dword [esp + 0x14], 0x16
jmp 0x1006c063
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, 0x73
mov esi, ebp
call fcn.1004dda0
jmp 0x1006c063
mov eax, dword [esp + 0x31c]
call fcn.10049350
mov ebx, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x54]
push ebp
mov eax, ebx
call fcn.100532b0
add esp, 8
cmp dword [esp + 0x28], 0
jne 0x1006c063
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
neg edx
push ebx
sbb edx, edx
push eax
and edx, 0x6f
push ecx
add edx, 5
push edx
mov esi, ebp
call fcn.1004dd10
mov eax, dword [esp + 0x32c]
add esp, 0x10
mov edx, ebx
call fcn.10049370
mov eax, ebp
call fcn.10048690
cmp dword [esp + 0x14], 0x16
mov dword [esp + 0x40], eax
je 0x1006c0b7
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov esi, ebp
call fcn.1004dd10
add esp, 0x10
cmp dword [esp + 0x44], 0
je 0x1006c0a0
cmp dword [esp + 0x28], 0
je 0x1006c0ae
cmp dword [esp + 0x10], 0
jne 0x1006c0b7
cmp dword [esp + 0x28], 0
je 0x1006c0b7
mov dl, 1
mov eax, ebp
call fcn.10048700
mov eax, dword [esp + 0x31c]
call fcn.10049350
mov ebx, eax
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x24]
je 0x1006c0f6
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
push ebx
push ecx
push edx
push 2
mov esi, ebp
call fcn.1004dd10
mov eax, dword [esp + 0x68]
add esp, 0x10
mov ecx, ebx
mov edx, 0x41
call fcn.1004dda0
cmp dword [esp + 0x54], 0
jne 0x1006c121
mov ecx, dword [esp + 0x18]
mov eax, ebx
mov edx, 0x34
mov esi, ebp
call fcn.1004dda0
mov eax, dword [esp + 0x20]
push ebx
push 0
push eax
push 0x74
call fcn.1004dd10
add esp, 0x10
mov eax, dword [esp + 0x31c]
mov edx, ebx
call fcn.10049370
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
neg eax
sbb eax, eax
and eax, 0xffffffc9
add eax, 0x66
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
jmp 0x1006c337
test eax, 0x1000
je 0x1006c315
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [edi + 0x38]
push 1
push eax
mov eax, dword [esp + 0x324]
push ecx
lea edx, [esp + 0x78]
push edx
push eax
mov eax, edi
mov dword [esp + 0x38], esi
xor ebx, ebx
call fcn.1006b050
mov ecx, dword [edi + 0x20]
add esp, 0x14
cmp byte [esp + 0x32c], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ecx
jne 0x1006c216
test dword [edi + 4], 0x100000
je 0x1006c216
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], esi
jle 0x1006c21a
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov edx, dword [eax + 8]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + esi*4]
jne 0x1006c21a
mov edx, eax
mov eax, dword [edi + 8]
push edx
mov edx, dword [esp + 0x14]
push ebp
mov ecx, esi
mov ebx, 1
call fcn.100532b0
mov eax, dword [esp + 0x18]
add eax, esi
xor ecx, ecx
lea edx, [ebx + 0x6f]
mov esi, ebp
call fcn.1004dda0
mov eax, dword [esp + 0x324]
mov ecx, dword [esp + 0x24]
inc dword [eax + 0x48]
mov esi, dword [eax + 0x48]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x30]
inc ecx
push ebp
mov eax, esi
call fcn.100532b0
add esp, 0x10
jmp 0x1006c231
mov eax, dword [esp + 0x1c]
mov esi, dword [edi + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
push ebp
mov eax, esi
call fcn.100532b0
add esp, 8
cmp dword [esp + 0x28], 0
push esi
mov esi, ebp
je 0x1006c27a
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
neg ebx
sbb ebx, ebx
push edx
and ebx, 0x1f
push eax
add ebx, 0x3f
push ebx
call fcn.1004dd10
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push 0x27
call fcn.1004dd10
add esp, 0x20
mov dword [esp + 0x24], eax
mov dword [edi + 0x2c], 0x2f
jmp 0x1006c2c0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
neg ebx
sbb ebx, ebx
push ecx
and ebx, 0xffffff91
push edx
add ebx, 0x74
push ebx
call fcn.1004dd10
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push 0x3a
call fcn.1004dd10
mov dword [esp + 0x44], eax
add esp, 0x20
mov dl, 1
mov eax, ebp
call fcn.10048700
mov dword [edi + 0x2c], 0x66
cmp dword [esp + 0x54], 0
jne 0x1006c305
mov eax, dword [esp + 0x31c]
call fcn.10049350
mov ecx, dword [esp + 0x18]
mov edx, 0x34
mov esi, ebp
mov ebx, eax
call fcn.1004dda0
mov eax, dword [esp + 0x20]
push ebx
push 0
push eax
push 0x74
call fcn.1004dd10
mov eax, dword [esp + 0x32c]
add esp, 0x10
mov edx, ebx
call fcn.10049370
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
jmp 0x1006c337
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edx, 0x73
mov esi, ebp
mov dword [edi + 0x2c], 0x66
mov dword [edi + 0x30], ecx
call fcn.1004dda0
inc eax
mov dword [edi + 0x34], eax
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x214]
call fcn.1004a590
not eax
and dword [esp + 0x30], eax
mov eax, dword [esp + 0x74]
not edx
and dword [esp + 0x34], edx
mov ebx, eax
test eax, eax
jle 0x1006c3ad
mov esi, dword [esp + 0x7c]
add esi, 0xc
test byte [esi], 6
jne 0x1006c3a5
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
and eax, dword [esp + 0x30]
and ecx, dword [esp + 0x34]
or eax, ecx
jne 0x1006c3a5
cmp dword [edi + 0xc], 0
mov eax, dword [esi - 0xc]
je 0x1006c38a
test byte [eax + 2], 1
je 0x1006c3a5
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x31c]
push 8
push ecx
push eax
push edx
call fcn.10063f50
add esp, 0x10
or byte [esi], 4
dec ebx
add esi, 0x28
test ebx, ebx
jg 0x1006c364
cmp dword [edi + 0xc], 0
je 0x1006c41f
mov eax, ebp
call fcn.10048690
mov ecx, 1
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0xc]
lea edx, [ecx + 0x2d]
mov esi, ebp
call fcn.1004dda0
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x1006c41f
mov esi, dword [esp + 0x7c]
add esi, 0xc
mov edi, edi
test byte [esi], 6
jne 0x1006c415
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
and eax, dword [esp + 0x30]
and ecx, dword [esp + 0x34]
or eax, ecx
jne 0x1006c415
mov eax, dword [esp + 0x58]
mov ecx, dword [esi - 0xc]
mov edx, dword [esp + 0x31c]
push 8
push eax
push ecx
push edx
call fcn.10063f50
add esp, 0x10
or byte [esi], 4
inc ebx
add esi, 0x28
cmp ebx, dword [esp + 0x74]
jl 0x1006c3e0
mov ecx, dword [esp + 0x320]
mov eax, dword [esp + 0x48]
movsx edx, word [ecx]
inc eax
add edi, 0x4c
cmp eax, edx
mov dword [esp + 0x48], eax
jl 0x1006b830
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x6c]
push ecx
mov dword [esi + 0xc], eax
call fcn.10053060
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret