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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x24], 0
push esi
push edi
and dl, 2
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0x74]
movzx ecx, word [ebx + 0x46]
mov dword [esp + 0x24], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
movsx eax, byte [ebx + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x40]
mov byte [esp + 0x13], dl
mov dword [esp + 0x1c], esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [esi + 0x38]
mov dword [esp + 0x20], ecx
test dl, dl
je 0x42ef03
cmp byte [esi + 8], 0
je 0x42eef4
push ecx
push esi
call fcn.004253e0
movzx esi, word [esi + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
mov eax, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x42eef4
mov dword [esp + 0x2c], 1
jmp 0x42ef03
mov ecx, ebx
call fcn.00424960
test eax, eax
jne 0x42f33d
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 8], 0
jne 0x42ef46
and byte [ebx + 1], 0xf1
xor eax, eax
cmp byte [ebx], 1
mov word [ebx + 0x2a], ax
jne 0x42ef37
movzx ecx, word [ebx + 0x46]
test cx, cx
je 0x42ef37
mov eax, dword [ebx + 0x74]
cmp byte [eax + 8], 0
je 0x42ef37
lea eax, [ecx - 1]
mov word [ebx + 0x46], ax
jmp 0x42ef46
mov ecx, ebx
call fcn.0042a8c0
test eax, eax
jne 0x42f33d
mov al, byte [ebx + 1]
test al, 0x20
je 0x42ef7d
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x42ef78
nop dword [eax + eax]
cmp ecx, ebx
je 0x42ef71
test edx, edx
je 0x42efe8
cmp dword [ecx + 0x3c], edx
je 0x42efe8
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x42ef60
and al, 0xdf
mov byte [ebx + 1], al
cmp dword [ebx + 0x70], 0
jne 0x42efc3
cmp byte [edi + 0xb], 0
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x3c]
je 0x42efc3
mov eax, dword [edi + 4]
mov byte [edi + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x42efc3
test byte [eax + 1], 0x10
je 0x42efbc
mov byte [edi + 0xb], 1
cmp dword [eax + 0x3c], ecx
jne 0x42efbc
cmp dword [eax + 0x18], edx
jne 0x42efbc
cmp dword [eax + 0x1c], esi
jne 0x42efbc
mov byte [eax], 0
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x42efa0
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x42f00b
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x42f00b
cmp dword [edx + 0x60], 0
je 0x42f038
call fcn.0041ec00
jmp 0x42f030
test ecx, ecx
je 0x42ef78
push ebx
call fcn.00424a50
add esp, 4
test eax, eax
je 0x42ef7d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x42f33d
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x42f02b
call fcn.00420780
jmp 0x42f030
call fcn.004206b0
test eax, eax
jne 0x42f33d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.0042bba0
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, edi
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.0042c2d0
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x42f33d
cmp byte [edi + 8], al
jne 0x42f1ba
movsx eax, byte [ebx + 0x44]
mov ecx, dword [esp + 0x18]
dec eax
mov esi, dword [ebx + 0x74]
cmp ecx, eax
jge 0x42f096
mov eax, dword [ebx + ecx*4 + 0x7c]
mov eax, dword [eax + 4]
jmp 0x42f099
mov eax, dword [esi + 4]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx edi, cx
and edi, eax
lea eax, [edx + 4]
add edi, edx
cmp edi, eax
jae 0x42f0f7
push 0x4d6ad4
push 0x10a17
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00412760
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push edi
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x14], eax
je 0x42f13e
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x42f13e
cmp dword [edx + 0x60], 0
je 0x42f134
call fcn.0041ec00
jmp 0x42f165
mov dword [esp + 0xc], 0
jmp 0x42f16d
mov eax, dword [edx + 0x28]
test eax, eax
je 0x42f14b
mov dword [esp + 0xc], eax
jmp 0x42f196
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x42f160
call fcn.00420780
jmp 0x42f165
call fcn.004206b0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42f196
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push dword [esp + 0x1c]
add eax, 4
push eax
lea eax, [edi - 4]
push eax
call fcn.0042c3f0
add esp, 0x14
movzx edx, word [esi + 0x16]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x24]
dec edx
mov ecx, esi
call fcn.0042c2d0
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x42f33d
mov ecx, ebx
call fcn.0042e7f0
mov esi, eax
test esi, esi
jne 0x42f33b
movsx eax, byte [ebx + 0x44]
cmp eax, dword [esp + 0x18]
jle 0x42f2be
mov eax, dword [ebx + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x42f224
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.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x42f22b
mov ecx, edx
call fcn.0041a3d0
mov cl, byte [ebx + 0x44]
dec cl
movsx eax, cl
mov byte [ebx + 0x44], cl
cmp eax, dword [esp + 0x18]
jle 0x42f2ab
nop dword [eax]
movsx eax, cl
dec cl
mov edx, dword [ebx + eax*4 + 0x78]
mov byte [ebx + 0x44], cl
test edx, edx
je 0x42f29f
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x42f298
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.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x42f29f
mov ecx, edx
call fcn.0041a3d0
mov cl, byte [ebx + 0x44]
movsx eax, cl
cmp eax, dword [esp + 0x18]
jg 0x42f240
movsx eax, cl
mov ecx, ebx
mov eax, dword [ebx + eax*4 + 0x78]
mov dword [ebx + 0x74], eax
call fcn.0042e7f0
mov esi, eax
test esi, esi
jne 0x42f33b
cmp dword [esp + 0x2c], esi
je 0x42f319
mov ecx, dword [esp + 0x1c]
mov byte [ebx], 2
movzx eax, word [ecx + 0x16]
cmp dword [esp + 0x24], eax
jb 0x42f2fe
mov dword [ebx + 0x40], 0xffffffff
mov ax, word [ecx + 0x16]
dec ax
mov word [ebx + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x40], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00429c60
cmp byte [esp + 0x13], 0
mov esi, eax
je 0x42f333
mov ecx, ebx
call fcn.00424850
mov byte [ebx], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret