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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], ebx
push edi
test esi, esi
jne 0x42b0a1
cmp byte [ebx], 1
jne 0x42b098
mov dl, byte [ebx + 1]
test dl, 2
je 0x42b098
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp + 0xc]
cmp ecx, esi
jne 0x42b036
cmp eax, edi
jne 0x42b038
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, edi
jg 0x42b098
jl 0x42b040
cmp ecx, esi
jae 0x42b098
test dl, 8
jne 0x42b106
add ecx, 1
adc eax, 0
cmp ecx, esi
jne 0x42b098
cmp eax, edi
jne 0x42b098
cmp dword [ebx + 0x40], 0
jne 0x42b098
mov eax, dword [ebp + 0x14]
push 0
push ebx
mov dword [eax], 0
call fcn.0042b6b0
add esp, 8
test eax, eax
jne 0x42b08f
mov ecx, ebx
call fcn.0042a5a0
cmp dword [ebx + 0x18], esi
jne 0x42b098
cmp dword [ebx + 0x1c], edi
jne 0x42b098
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x42b545
mov dword [ebp - 0xc], 0
jmp 0x42b0f2
mov ecx, dword [esi]
cmp word [ecx + 8], 0xd
ja 0x42b0e7
mov eax, dword [esi + 4]
movzx edx, word [eax + 8]
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0
je 0x42b0c1
mov word [esi + 0xc], 0xff01
jmp 0x42b0c7
mov word [esi + 0xc], 0x1ff
test dl, 4
je 0x42b0d5
mov dword [ebp - 0xc], 0x4381d0
jmp 0x42b0ee
test dl, 0x19
jne 0x42b0e7
cmp dword [ecx + 0x14], 0
mov dword [ebp - 0xc], 0x438400
je 0x42b0ee
mov dword [ebp - 0xc], 0x4381b0
mov byte [esi + 0xb], 0
mov ecx, ebx
call fcn.0042ac70
test eax, eax
je 0x42b118
cmp eax, 0x10
jne 0x42b545
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
sub eax, dword [ebp + 0x10]
add ebx, 0x74
mov dword [ebp - 0x28], eax
mov edi, dword [ebx]
xor esi, esi
mov dword [ebp - 0x10], esi
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], edi
movzx esi, word [edi + 0x16]
dec esi
mov ebx, esi
mov dword [ebp - 0x20], esi
sar ebx, cl
cmp dword [ebp - 0xc], 0
mov word [eax + 0x46], bx
jne 0x42b224
mov cl, byte [edi + 3]
mov byte [ebp - 1], cl
mov eax, dword [edi + 0x40]
movzx edx, word [edi + 0x18]
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, dx
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x44]
cmp byte [ebp - 1], 0
je 0x42b18f
cmp byte [ecx], 0x80
jb 0x42b18e
mov eax, dword [edi + 0x3c]
nop dword [eax]
inc ecx
cmp ecx, eax
jae 0x42b41c
cmp byte [ecx], 0x80
jae 0x42b180
inc ecx
lea edx, [ebp - 0x30]
call fcn.004173b0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jg 0x42b1e3
jl 0x42b1ab
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x42b1e6
lea edx, [ebx + 1]
mov dword [ebp - 0x10], edx
cmp edx, esi
jle 0x42b1fb
or edi, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 8], 0
jne 0x42b477
mov edi, eax
movzx eax, word [edi + 0x16]
cmp edx, eax
jl 0x42b39f
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x42b3b9
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x42b20c
jg 0x42b1f1
cmp eax, edx
jbe 0x42b20c
mov edx, dword [ebp - 0x10]
lea esi, [ebx - 1]
cmp edx, esi
jg 0x42b205
lea ebx, [esi + edx]
sar ebx, 1
jmp 0x42b155
mov edi, 1
jmp 0x42b1b8
mov edx, dword [ebp - 8]
mov word [edx + 0x46], bx
cmp byte [edi + 8], 0
jne 0x42b446
mov edx, ebx
mov dword [ebp - 0x10], edx
jmp 0x42b1c7
mov eax, dword [edi + 0x40]
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
movzx eax, byte [edi + 0xb]
add ecx, dword [edi + 0x44]
movzx edx, byte [ecx]
cmp edx, eax
ja 0x42b25b
push dword [ebp - 0x14]
lea eax, [ecx + 1]
push eax
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov edi, eax
jmp 0x42b36f
mov al, byte [ecx + 1]
test al, al
js 0x42b28a
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
movzx eax, word [edi + 0xe]
cmp edx, eax
ja 0x42b28a
push dword [ebp - 0x14]
lea eax, [ecx + 2]
push eax
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov edi, eax
jmp 0x42b36f
mov esi, dword [ebp - 8]
movzx eax, byte [edi + 0xa]
add esi, 0x18
sub ecx, eax
mov eax, dword [edi + 0x50]
push esi
push ecx
push edi
call eax
mov edi, dword [esi]
add esp, 0xc
mov dword [ebp - 0x24], edi
cmp edi, 2
jl 0x42b517
lea eax, [edi + 0x12]
cdq
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x42b500
test edx, edx
ja 0x42b500
jb 0x42b2d5
cmp esi, 0x7fffff00
jae 0x42b500
cmp dword [0x557318], 0
je 0x42b315
mov eax, dword [0x55af08]
test eax, eax
je 0x42b2f1
push eax
call dword [0x557374]
add esp, 4
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00413280
mov eax, dword [0x55af08]
test eax, eax
je 0x42b310
push eax
call dword [0x55737c]
mov esi, dword [ebp - 0x18]
jmp 0x42b321
mov esi, dword [ebp - 0x18]
jmp 0x42b324
push esi
call dword [0x557344]
mov esi, eax
mov dword [ebp - 0x18], esi
add esp, 4
test esi, esi
je 0x42b500
mov eax, dword [ebp - 8]
xor edx, edx
push 0
push esi
push edi
mov ecx, eax
mov word [eax + 0x46], bx
call fcn.0042a7d0
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 8]
and byte [eax + 1], 0xfb
test edi, edi
jne 0x42b4e5
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x24]
call dword [ebp - 0xc]
add esp, 0xc
mov edi, eax
push esi
call fcn.004134b0
mov esi, dword [ebp - 0x20]
add esp, 4
test edi, edi
jns 0x42b37b
lea edx, [ebx + 1]
mov dword [ebp - 0x10], edx
jmp 0x42b38a
jle 0x42b494
mov edx, dword [ebp - 0x10]
lea esi, [ebx - 1]
mov dword [ebp - 0x20], esi
cmp edx, esi
jg 0x42b1b8
mov edi, dword [ebp - 0x1c]
lea ebx, [esi + edx]
sar ebx, 1
jmp 0x42b224
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov edx, dword [ecx + eax]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
bswap edx
mov al, byte [edi + 0x44]
mov ecx, dword [edi + 0xc]
mov word [edi + 0x46], si
cmp al, 0x13
jge 0x42b468
and byte [edi + 1], 0xf9
xor ebx, ebx
movsx eax, al
mov word [edi + 0x2a], bx
lea ebx, [edi + 0x74]
mov word [edi + eax*2 + 0x48], si
movsx esi, byte [edi + 0x44]
mov eax, dword [ebx]
mov dword [edi + esi*4 + 0x78], eax
xor eax, eax
inc byte [edi + 0x44]
mov word [edi + 0x46], ax
movzx eax, byte [edi + 2]
push eax
push edi
push ebx
call fcn.00427d50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42b53a
mov eax, dword [ebp - 0x28]
jmp 0x42b126
push 0x54afac
push 0xfdc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00415900
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [edx + 1], 2
mov dword [edx + 0x18], eax
xor eax, eax
mov word [edx + 0x2a], ax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x54afac
push 0xfc2d
jmp 0x42b521
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 8]
mov dword [eax], edi
xor edi, edi
xor eax, eax
mov word [esi + 0x46], bx
mov word [esi + 0x2a], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor edi, edi
mov esi, dword [ebp - 8]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov word [esi + 0x46], bx
cmp byte [eax + 0xb], 0
je 0x42b53d
push 0x54afac
push 0xfe31
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00415900
add esp, 0x14
mov edi, 0xb
xor eax, eax
mov word [esi + 0x2a], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004134b0
mov esi, dword [ebp - 8]
add esp, 4
xor eax, eax
mov word [esi + 0x2a], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
xor eax, eax
mov edi, 7
mov word [esi + 0x2a], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x54afac
push 0xfe12
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00415900
mov edi, 0xb
add esp, 0x14
mov esi, dword [ebp - 8]
xor eax, eax
mov word [esi + 0x2a], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret