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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 8], eax
inc eax
mov dword [esp + 0x30], eax
push ebx
push ebp
mov ebp, dword [esp + 0x64]
lea ebx, [eax + 1]
add eax, 2
mov byte [esp + 0x30], 1
mov dword [esp + 0x3c], eax
inc eax
mov dword [esp + 0x34], eax
inc eax
mov ecx, dword [ebp]
mov dword [esp + 0x54], eax
inc eax
mov dword [esp + 0x50], eax
inc eax
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x78], eax
cmp dword [ebp + 0x2c], eax
jge 0x498ff7
mov dword [ebp + 0x2c], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x499004
mov dword [esp + 0x18], esi
jmp 0x49902b
cmp dword [ebp + 0x7c], 0
jne 0x499014
test byte [ecx + 0x50], 8
jne 0x499014
mov byte [ebp + 0x17], 1
push ebp
call fcn.004fe590
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x499cf3
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x499cf3
cmp byte [edx + 0x2b], 0
jne 0x499cf3
mov eax, dword [edx]
test eax, eax
je 0x499068
push 0x5c
push 0x570f54
push eax
push str.sqlite__
call fcn.004bfdd0
add esp, 0x10
test eax, eax
je 0x499cf3
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx + 0x3c]
push edi
mov edi, 0xffff8000
mov dword [esp + 0x28], edi
test ecx, ecx
je 0x49909c
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x28], edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x49909c
nop dword [eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x499090
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x20]
mov ecx, edi
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
push 0
push dword [edx]
push 0x1c
push ebp
call fcn.004cc580
add esp, 0x14
test eax, eax
jne 0x499cf2
mov eax, dword [esp + 0x70]
push dword [eax]
push 0
push dword [eax + 0x14]
push edi
push ebp
call fcn.004f99e0
mov eax, dword [esp + 0x94]
mov edx, eax
inc eax
mov dword [esp + 0x78], edx
push 0x70
push dword [esp + 0x88]
mov dword [esp + 0x9c], eax
lea ecx, [eax + 1]
mov eax, dword [ebp + 0x28]
cmp eax, ecx
push edi
push edx
cmovle eax, ecx
push ebp
mov dword [ebp + 0x28], eax
call fcn.004e9200
mov edi, dword [esp + 0x98]
push dword [edi]
push dword [esp + 0x68]
push esi
call fcn.00508600
mov edx, dword [edi + 8]
add esp, 0x34
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], edx
test edx, edx
je 0x499c6a
test eax, eax
je 0x49913c
cmp eax, edx
jne 0x499c5b
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp dword [edx + 0x24], ecx
movzx eax, al
cmove eax, ecx
test byte [edi + 0x1c], 0x80
mov dword [esp + 0x38], eax
je 0x499168
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
jne 0x499168
movzx ebx, word [edx + 0x32]
mov eax, edi
mov ecx, ebx
jmp 0x49917a
test byte [edx + 0x38], 8
mov eax, edx
movzx ebx, word [edx + 0x34]
mov ecx, ebx
je 0x49917a
movzx ecx, word [edx + 0x32]
push 0
push dword [eax]
lea edi, [ecx - 1]
push 0
push dword [esp + 0x68]
mov dword [esp + 0x44], edi
push 0
push 0x75
push esi
call fcn.004fe040
mov eax, dword [esp + 0x98]
add esp, 0x1c
add eax, edi
cmp dword [ebp + 0x2c], eax
jge 0x4991a9
mov dword [ebp + 0x2c], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
mov edx, dword [edx + 0x2c]
cmp dword [esi + 0x70], ecx
jg 0x4991d1
push dword [esp + 0x28]
push edx
push dword [esp + 0x88]
push 0x70
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x499203
mov edi, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x14]
mov edi, dword [ebp + 8]
push ebp
call fcn.004e7650
mov edx, eax
add esp, 8
test edx, edx
je 0x49924f
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x49923d
cmp dword [eax + 0x210], 0
jne 0x49924f
add dword [edx], 0xffffffff
jne 0x49924f
push edx
push dword [edx + 0xc]
call fcn.004d5c80
add esp, 8
jmp 0x49924f
mov eax, dword [edi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x6c]
inc edx
cmp dword [esi + 0x70], ecx
jg 0x49926d
push 0
push edx
push ebx
push 0x47
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x499298
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], ebx
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 [esi + 0x6c]
movzx edx, word [eax + 0x32]
cmp dword [esi + 0x70], ecx
jg 0x4992bc
push 0
push dword [esp + 0x44]
push edx
push 0x47
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x4992eb
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x54], ebx
cmp dword [esi + 0x70], ebx
jg 0x49931a
push 0
push 0
push dword [esp + 0x88]
push 0x24
push esi
call fcn.004b0300
mov edx, dword [esp + 0x94]
add esp, 0x14
mov dword [esp + 0x54], eax
jmp 0x499350
mov edx, dword [esp + 0x80]
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x24
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 ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49936c
push 1
push dword [esp + 0x14]
push edx
push 0x62
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x49939b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x62
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 + 0x20]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax + 0x1f0]
cmp dword [esi + 0x70], ecx
jg 0x4993c1
push 0
push dword [esp + 0x48]
push edx
push 0x47
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x4993f0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [ebp + 8]
push 0
push 0x2c
push dword [ebp]
call fcn.004d5b60
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x499466
push 0xfffffffffffffff1
push ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0x57265c
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x14], 0
mov byte [ecx + 0x1a], 4
mov eax, dword [edi + 0x6c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x34]
push eax
inc eax
push eax
push 0
push 0x42
push edi
call fcn.004fe040
mov eax, dword [edi + 0x6c]
add esp, 0x1c
test eax, eax
jle 0x499458
lea ecx, [eax + eax*4]
xor edx, edx
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebp + 0x7c]
mov ecx, ebp
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499483
push 0
push dword [esp + 0x1c]
push 0
push 0x47
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x4994b6
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x47
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 ebx, dword [esp + 0x34]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x24], eax
test ebx, ebx
jle 0x49982b
dec dword [ebp + 0x38]
lea eax, [ebx*4]
mov edi, dword [ebp + 0x38]
push 0
push eax
push dword [esp + 0x28]
mov dword [esp + 0x5c], edi
call fcn.004d5b60
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
je 0x499c4b
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499510
push 0
push 0
push 0
push 9
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x499543
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
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
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], ecx
cmp ebx, 1
jne 0x4995aa
mov eax, dword [esp + 0x14]
cmp word [eax + 0x32], bx
jne 0x4995aa
cmp byte [eax + 0x36], 0
je 0x4995aa
cmp dword [esi + 0x70], ecx
jg 0x49957b
push 0
push edi
push dword [esp + 0x84]
push 0x33
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x4995aa
mov edx, dword [esp + 0x7c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x33
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
xor edi, edi
nop dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
mov eax, dword [eax + 0x20]
mov bl, byte [ecx + 0xb1]
mov edx, dword [eax + edi*4]
mov al, byte [ecx + 0x54]
mov byte [esp + 0x48], al
movzx eax, bl
push eax
push edx
push dword [esp + 0x50]
mov dword [esp + 0x6c], edx
push ecx
call fcn.004dd450
add esp, 0x10
mov ebp, eax
test bl, bl
jne 0x499607
test ebp, ebp
je 0x4995f0
cmp dword [ebp + 0xc], 0
jne 0x499607
push dword [esp + 0x60]
push ebp
push dword [esp + 0x50]
push dword [esp + 0x78]
call fcn.004e39e0
add esp, 0x10
mov ebp, eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499623
push 0
push dword [esp + 0x1c]
push edi
push 0x47
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x499652
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499673
push dword [esp + 0x10]
push edi
push dword [esp + 0x88]
push 0x5e
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x4996a5
mov edx, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x7c]
push 0xfffffffffffffffe
push ebp
add eax, edi
push eax
push 0
push dword [esp + 0x20]
push 0x34
push esi
call fcn.004fe040
mov ebx, dword [esp + 0x68]
add esp, 0x1c
mov dword [ebx + edi*4], eax
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4996de
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x34]
inc edi
mov ebp, dword [esp + 0x6c]
cmp edi, edx
jl 0x4995b0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49970b
push 0
push dword [esp + 0x1c]
push edx
push 0x47
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x49973a
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebp, dword [esp + 0x50]
push ebp
push esi
call fcn.00507dd0
mov eax, dword [esi]
add esp, 8
mov edx, dword [esi + 0x6c]
xor edi, edi
cmp byte [eax + 0x57], 0
je 0x49975d
mov dword [0x590c28], edx
jmp 0x49976b
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 - 0xc], edx
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x499789
mov eax, 0x590c20
jmp 0x499795
mov eax, dword [ebx + edi*4]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x7c]
mov ecx, dword [esi + 0x6c]
add edx, edi
cmp dword [esi + 0x70], ecx
jg 0x4997bc
push edx
push edi
push dword [esp + 0x88]
push 0x5e
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x4997ee
mov ebx, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x5e
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, ebp
jl 0x499777
mov ecx, dword [esi + 0xc]
mov ebp, dword [esp + 0x50]
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x499811
push ebp
push esi
push ecx
call fcn.004c4330
add esp, 0xc
jmp 0x49981a
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + ebp*4], eax
push ebx
push dword [esp + 0x24]
call fcn.004d5a50
mov ebp, dword [esp + 0x74]
add esp, 8
mov edi, dword [ebp + 8]
push 0
push 0x24
push dword [ebp]
call fcn.004d5b60
mov ebx, dword [esp + 0x1c]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4998a3
push 0xfffffffffffffff1
push ecx
push ebx
push dword [esp + 0x38]
mov dword [ecx], 0
push 1
mov dword [ecx + 4], 0x572684
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x14], 0
mov byte [ecx + 0x1a], 2
mov eax, dword [edi + 0x6c]
push 0x42
push edi
mov dword [ecx + 0x10], eax
call fcn.004fe040
mov eax, dword [edi + 0x6c]
add esp, 0x1c
test eax, eax
jle 0x499895
lea ecx, [eax + eax*4]
xor edx, edx
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebp + 0x7c]
mov ecx, ebp
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + 0x6c]
cmp dword [ecx + 0x1f0], 0
mov eax, dword [eax + 0x70]
je 0x499a84
cmp eax, edi
jg 0x4998da
push 0
push 0
push ebx
push 0x32
push esi
call fcn.004b0300
mov edx, dword [esp + 0x24]
add esp, 0x14
mov edi, eax
jmp 0x49990d
mov edx, dword [esp + 0x10]
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
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 ebx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ebx
jg 0x499929
push 0
push 0
push edx
push 0x10
push esi
call fcn.004b0300
add esp, 0x14
mov ebx, eax
jmp 0x499958
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x10
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 ebp, dword [esi + 0x6c]
cmp dword [esi + 0x70], ebp
jg 0x499981
push 1
push dword [esp + 0x80]
push 0
push dword [esp + 0x8c]
push 0x18
push esi
call fcn.00497760
add esp, 0x18
mov ebp, eax
jmp 0x4999bd
mov edx, dword [esp + 0x80]
lea eax, [ebp + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebp*4]
mov eax, dword [esi + 0x68]
add ecx, ebp
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4], 0xfd18
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 1
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x4999cf
mov eax, 0x590c20
jmp 0x4999d8
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4999fe
mov edx, dword [esp + 0x24]
push 0
push edx
push dword [esp + 0x88]
push 0x27
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x499a34
mov edx, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x27
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 [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x499a46
mov eax, 0x590c20
jmp 0x499a4f
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x499a6b
mov ebp, dword [esp + 0x6c]
mov eax, 0x590c20
mov dword [eax + 8], edx
jmp 0x499ad9
mov eax, dword [esi + 0x68]
lea ecx, [ebp*4]
add ecx, ebp
mov ebp, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x499ad9
cmp eax, edi
jg 0x499aa3
mov edx, dword [esp + 0x24]
push 0
push edx
push dword [esp + 0x88]
push 0x27
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x499ad9
mov edx, dword [esp + 0x80]
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [ebp + 8]
push 0
push 0x20
push dword [ebp]
call fcn.004d5b60
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x499b50
push 0xfffffffffffffff1
push ecx
push dword [esp + 0x60]
mov dword [ecx], 0
push dword [esp + 0x38]
mov dword [ecx + 4], 0x5726ac
push 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x14], 0
mov byte [ecx + 0x1a], 1
mov eax, dword [edi + 0x6c]
push 0x42
push edi
mov dword [ecx + 0x10], eax
call fcn.004fe040
mov eax, dword [edi + 0x6c]
add esp, 0x1c
test eax, eax
jle 0x499b42
lea ecx, [eax + eax*4]
xor edx, edx
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebp + 0x7c]
mov ecx, ebp
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ebx, dword [esp + 0x10]
push 0
push 0x576d2c
push ebx
push 3
push dword [esp + 0x4c]
push 0x61
push esi
call fcn.004fe040
mov ecx, dword [esi + 0x6c]
add esp, 0x1c
mov edi, dword [esp + 0x30]
cmp dword [esi + 0x70], ecx
jg 0x499b97
push 0
push edi
push dword [esp + 0x80]
push 0x7f
push esi
call fcn.004b0300
mov edx, dword [esp + 0x8c]
add esp, 0x14
jmp 0x499bc6
mov edx, dword [esp + 0x78]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7f
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 ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499be1
push edi
push ebx
push edx
push 0x80
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x499c0c
mov ebp, dword [esp + 0x6c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x499c23
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x499c38
mov eax, 0x590c20
mov dword [eax + 8], edx
jmp 0x499c4f
mov eax, dword [esp + 0x54]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x499c4f
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x14], edx
test edx, edx
jne 0x499130
test eax, eax
jne 0x499cf2
cmp byte [esp + 0x38], al
je 0x499cf2
mov ebp, dword [esp + 0x58]
push ebp
push dword [esp + 0x68]
push 0x62
push esi
call fcn.004fdf80
push ebp
push 0x11
push esi
call fcn.004fdf20
push dword [esp + 0x78]
mov edi, eax
push 0
push 0x4b
push esi
call fcn.004fdf80
push 0
push 0x576d2c
push ebx
push 3
push dword [esp + 0x78]
push 0x61
push esi
call fcn.004fe040
mov ebp, dword [esp + 0xc0]
add esp, 0x48
push dword [esp + 0x30]
push ebp
push 0x7f
push esi
call fcn.004fdf80
push dword [esp + 0x40]
push ebx
push ebp
push 0x80
push esi
call fcn.004fdfe0
push 8
push esi
call fcn.004fe4a0
push edi
push esi
call fcn.00508390
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret