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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and byte [ebp + 0xc], 2
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x18], 0
cmp byte [ebx], 3
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x1010300b
push ebx
call fcn.100cabd0
mov esi, eax
add esp, 4
test esi, esi
jne 0x101033dd
mov edi, dword [ebx + 0x74]
movsx eax, byte [ebx + 0x44]
movzx ecx, word [ebx + 0x46]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], edi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
cmp dword [edi + 0x14], 0
mov dword [ebp + 8], ecx
jge 0x10103053
push edi
call fcn.100c9110
add esp, 4
test eax, eax
jne 0x101031f9
mov ecx, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x101030ac
cmp byte [edi + 8], 0
je 0x10103099
push ecx
push edi
call fcn.100cb2b0
mov esi, dword [edi + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
add esi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x28]
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x10103099
cmp word [edi + 0x18], 1
je 0x10103099
mov dword [ebp - 0x18], 1
jmp 0x101030ac
push ebx
call fcn.100fc5c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x101033dd
cmp byte [edi + 8], 0
jne 0x101030ec
and byte [ebx + 1], 0xf1
xor eax, eax
mov word [ebx + 0x32], ax
cmp byte [ebx], al
jne 0x101030db
movzx ecx, word [ebx + 0x46]
test cx, cx
je 0x101030db
mov eax, dword [ebx + 0x74]
cmp byte [eax + 8], 0
je 0x101030db
lea eax, [ecx - 1]
mov word [ebx + 0x46], ax
jmp 0x101030ec
push ebx
call fcn.100ca9f0
add esp, 4
test eax, eax
jne 0x101033df
test byte [ebx + 1], 0x20
je 0x1010310b
push ebx
push dword [ebx + 0x40]
push dword [ebp - 8]
call fcn.100fc570
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101033dd
cmp dword [ebx + 0x70], 0
jne 0x10103127
push 0
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x40]
push dword [ebp - 0x14]
call fcn.100ea4b0
add esp, 0x14
push dword [edi + 0x48]
call fcn.101201f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x101033dd
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
push edi
call fcn.100cbe80
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 0x26]
push eax
push dword [ebp - 0xc]
push edi
call fcn.100d1cc0
mov esi, dword [ebp + 8]
add esp, 0x1c
test esi, esi
jne 0x101033dd
cmp byte [edi + 8], 0
jne 0x10103272
mov esi, dword [ebx + 0x74]
mov dword [ebp + 8], esi
cmp dword [esi + 0x14], 0
jge 0x10103198
push esi
call fcn.100c9110
mov esi, eax
add esp, 4
test esi, esi
jne 0x101033dd
mov esi, dword [ebp + 8]
movsx eax, byte [ebx + 0x44]
mov ecx, dword [ebp - 4]
dec eax
cmp ecx, eax
jge 0x101031aa
mov eax, dword [ebx + ecx*4 + 0x7c]
jmp 0x101031ad
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [esi + 0x18]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jae 0x10103205
push 0x101c584c
push 0x119a4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ecx
push esi
call eax
push dword [esi + 0x48]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x54]
mov dword [ebp - 8], eax
call fcn.101201f0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x10103251
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffc
push eax
push dword [ebp - 0xc]
push edi
call fcn.100ea0c0
add esp, 0x1c
lea eax, [ebp + 8]
push eax
movzx eax, word [esi + 0x18]
push dword [ebp - 0x14]
dec eax
push eax
push esi
call fcn.100d1cc0
mov esi, dword [ebp + 8]
add esp, 0x10
test esi, esi
jne 0x101033dd
push ebx
call fcn.100c6ff0
mov esi, eax
add esp, 4
test esi, esi
jne 0x101033dd
movsx eax, byte [ebx + 0x44]
cmp eax, dword [ebp - 4]
jle 0x1010337c
mov eax, dword [ebx + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x101032dd
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x101032e6
push edx
call fcn.10120f40
add esp, 4
dec byte [ebx + 0x44]
mov cl, byte [ebx + 0x44]
movsx eax, cl
cmp eax, dword [ebp - 4]
jle 0x10103360
movsx eax, cl
dec cl
mov edx, dword [ebx + eax*4 + 0x78]
mov byte [ebx + 0x44], cl
test edx, edx
je 0x10103355
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1010334c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10103355
push edx
call fcn.10120f40
add esp, 4
mov cl, byte [ebx + 0x44]
movsx eax, cl
cmp eax, dword [ebp - 4]
jg 0x101032f4
movsx eax, cl
push ebx
mov eax, dword [ebx + eax*4 + 0x78]
mov dword [ebx + 0x74], eax
call fcn.100c6ff0
mov esi, eax
add esp, 4
test esi, esi
jne 0x101033dd
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x18], 0
je 0x101033b8
mov byte [ebx], 2
movzx eax, word [edi + 0x18]
cmp dword [ebp - 0xc], eax
jb 0x101033a8
mov dword [ebx + 4], 0xffffffff
mov ax, word [edi + 0x18]
dec ax
mov word [ebx + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
mov dword [ebx + 4], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100ecf20
add esp, 4
mov esi, eax
cmp byte [ebp + 0xc], 0
je 0x101033d5
push ebx
call fcn.100caad0
add esp, 4
mov byte [ebx], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret