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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ecx + 8]
mov ebx, edx
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x10], eax
nop dword [eax]
cmp dword [ebx], 0
je 0x1009f171
cmp dword [ebx + 0x1c], edx
je 0x1009f171
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x1009f160
mov dword [esp + 0xc], ebx
test edx, edx
je 0x1009f488
cmp dword [ebp + 0x10], eax
je 0x1009f488
mov eax, dword [ebp + 8]
test byte [eax + 0x1c], 0x80
jne 0x1009f276
mov al, byte [ecx + 0x13]
test al, al
jne 0x1009f1a2
inc dword [ecx + 0x2c]
mov edi, dword [ecx + 0x2c]
jmp 0x1009f1b1
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov edi, dword [ecx + eax*4 + 0xa0]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1009f1d0
push 0
push edi
push dword [ebp + 0x10]
mov edx, 0x8e
mov ecx, esi
call fcn.1003f820
add esp, 0xc
jmp 0x1009f1fe
mov edx, dword [ebp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x8e
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 0x1009f21e
push edi
push 0
push dword [esp + 0x18]
mov edx, 0x1e
mov ecx, esi
call fcn.1003f820
add esp, 0xc
jmp 0x1009f24d
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x1e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
test edi, edi
je 0x1009f488
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 0x13]
cmp al, 8
jae 0x1009f488
movzx eax, al
mov dword [ecx + eax*4 + 0xa0], edi
inc byte [ecx + 0x13]
jmp 0x1009f488
mov edi, dword [eax + 8]
test edi, edi
je 0x1009f290
nop dword [eax]
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x1009f290
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x1009f280
movzx eax, word [edi + 0x32]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x18], 0
lea ebx, [eax + 1]
add eax, dword [esp + 0x14]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0xc]
mov dword [ecx + 0x2c], eax
jbe 0x1009f37f
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x1009f305
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x18]
movzx eax, word [eax + ebx*2]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
nop word [eax + eax]
mov esi, dword [esp + 0x30]
cmp si, word [eax]
mov esi, dword [esp + 0x34]
je 0x1009f32d
inc ecx
add eax, 2
cmp ecx, edx
jl 0x1009f2f0
or eax, 0xffffffff
mov ecx, dword [esi + 0x6c]
movsx edx, ax
cmp dword [esi + 0x70], ecx
jg 0x1009f332
mov ebx, dword [esp + 0x1c]
mov ecx, esi
push ebx
push edx
push dword [ebp + 0x10]
mov edx, 0x5e
call fcn.1003f820
add esp, 0xc
jmp 0x1009f360
movzx eax, cx
jmp 0x1009f308
mov ebx, dword [ebp + 0x10]
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 + 0x1c]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
inc ebx
mov edx, dword [ebp + 0xc]
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp eax, dword [esp + 0x14]
jl 0x1009f2c8
mov ebx, dword [esp + 0xc]
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x1009f3a4
push dword [esp + 0x20]
mov edx, 0x1d
mov ecx, esi
push 0
push dword [esp + 0x18]
call fcn.1003f820
add esp, 0xc
mov edx, eax
jmp 0x1009f3d7
mov edi, dword [esp + 0x10]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
lea edi, [edx + edx*4]
shl edi, 2
cmp byte [eax + 0x57], 0
jne 0x1009f3f5
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x14]
mov byte [eax + edi + 1], 0xfd
mov dword [eax + edi + 0x10], ecx
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x1009f416
push 0
push 2
push 0xb
mov edx, 0x46
mov ecx, esi
call fcn.1003f820
add esp, 0xc
mov edx, eax
jmp 0x1009f44d
mov ebx, dword [esp + 0xc]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0xb
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xffffffffffffffff
push str.corrupt_database
mov ecx, esi
call fcn.10040470
mov ecx, dword [esp + 0x30]
add esp, 8
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov eax, dword [esi]
mov ecx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1009f480
mov eax, 0x10143a20
jmp 0x1009f485
mov eax, dword [esi + 0x68]
add eax, edi
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push 0
mov edx, dword [edx + 0x20]
call fcn.10058040
mov dword [esp + 0x38], eax
xor ecx, ecx
mov eax, dword [ebp + 8]
add esp, 4
xor edi, edi
cmp cx, word [eax + 0x22]
jge 0x1009f53b
mov dword [esp + 0x20], ecx
mov ebx, eax
nop dword [eax + eax]
mov eax, dword [ebx + 4]
cmp byte [ecx + eax + 8], 0x45
jne 0x1009f527
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax + 0x24]
add edx, edi
cmp dword [esi + 0x70], ecx
jg 0x1009f4f1
push 0
push 0
push edx
mov edx, 0x57
mov ecx, esi
call fcn.1003f820
add esp, 0xc
jmp 0x1009f523
mov ebx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x57
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 [esp + 0x20]
movsx eax, word [ebx + 0x22]
inc edi
add ecx, 0x10
mov dword [esp + 0x20], ecx
cmp edi, eax
jl 0x1009f4c0
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x1009f554
mov ecx, dword [esp + 0x24]
push 0
push 0
call fcn.10057a20
add esp, 8
jmp 0x1009f556
xor eax, eax
mov edx, dword [ebx + 8]
push ebx
push 0
push 0
push 2
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push 0
call fcn.10057e80
mov edx, dword [esp + 0x50]
add esp, 8
mov ecx, dword [esp + 0x3c]
push eax
call fcn.1009bba0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret