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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov dword [esp + 8], edx
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov eax, edx
mov ecx, dword [esp + 8]
and eax, 1
push esi
xor esi, esi
mov dword [esp + 0x18], eax
push edi
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
cmp ecx, 1
je 0x41a35e
cmp byte [ebx + 0x16], 0
je 0x41a35e
cmp byte [ebx + 0x10], 1
je 0x41a354
test dl, 2
je 0x41a35e
mov dword [esp + 0x24], 1
jmp 0x41a362
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x41a38b
push 0x63cc14
push 0xb9f7
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0040ed50
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test edx, edx
je 0x41a39d
mov edi, edx
jmp 0x41a53d
cmp dword [esp + 0x24], esi
je 0x41a4a7
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x41a3da
lea edx, [esp + 0x18]
push edx
mov edx, ecx
mov ecx, eax
call fcn.0041d370
mov edi, eax
add esp, 4
test edi, edi
jne 0x41a68b
cmp dword [esp + 0x18], esi
jne 0x41a4a7
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
dec ecx
push 0
cdq
push ecx
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], ecx
call fcn.005c97c0
mov ecx, dword [ebx + 0x3c]
lea edi, [esp + 0x14]
push edi
mov edi, dword [ebx + 0x98]
mov esi, eax
push edi
mov eax, dword [ecx]
push edx
push esi
push ecx
mov eax, dword [eax + 0x44]
call eax
mov edi, eax
add esp, 0x14
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x41a68b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41a4a7
cmp byte [ebx + 0x10], 1
mov esi, dword [esp + 0x10]
jbe 0x41a475
mov edx, esi
mov ecx, ebx
call fcn.0041a6c0
mov dword [esp + 0x20], eax
test eax, eax
je 0x41a471
push dword [esp + 0x14]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
push dword [esp + 0x30]
cdq
mov edi, dword [esi]
push edx
push eax
call fcn.005c97c0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x41a489
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov edx, esi
push ecx
push eax
mov ecx, ebx
call fcn.00419060
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x41a49f
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x41a68b
mov ecx, dword [ebx + 0xcc]
mov esi, dword [esp + 0x10]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push esi
push dword [ecx + 0x28]
call dword [0x66b81c]
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x41a502
mov ecx, dword [ebx + 0xcc]
lea eax, [esp + 0x20]
push eax
mov edx, esi
call fcn.004152c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x41a68b
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41a502
mov esi, dword [ebp + 8]
lea edi, [eax + 7]
mov dword [esi], eax
jmp 0x41a68e
mov esi, dword [eax + 4]
mov ecx, dword [ebx + 0xcc]
cmp dword [esi], 0
jne 0x41a521
mov edx, dword [esp + 0x10]
push eax
call fcn.00415350
add esp, 4
mov esi, eax
jmp 0x41a530
xor eax, eax
cmp ax, word [esi + 0x1a]
jne 0x41a52c
inc dword [ecx + 0xc]
inc word [esi + 0x1a]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
test edi, edi
jne 0x41a68b
cmp dword [esi + 0x10], edi
je 0x41a55b
test eax, eax
jne 0x41a55b
inc dword [ebx + 0xb8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
cmp ecx, 0x7fffffff
ja 0x41a645
mov eax, dword [0x66aae4]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp ecx, eax
je 0x41a645
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x1c]
jne 0x41a5e0
cmp dword [ebx + 0x18], ecx
jb 0x41a5e0
test edx, edx
jne 0x41a5e0
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x41a5e0
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x41a5c4
cmp dword [esp + 0x24], edx
jne 0x41a5c4
lea edx, [esp + 0x18]
push edx
mov edx, ecx
mov ecx, eax
call fcn.0041d370
mov edi, eax
add esp, 4
test edi, edi
jne 0x41a663
mov edx, dword [esp + 0x18]
mov ecx, esi
inc dword [ebx + 0xbc]
call fcn.00418450
mov edi, eax
test edi, edi
je 0x41a63c
jmp 0x41a663
cmp ecx, dword [ebx + 0x9c]
jbe 0x41a5ef
mov edi, 0xd
jmp 0x41a663
test edx, edx
je 0x41a629
mov eax, dword [0x677010]
test eax, eax
je 0x41a602
call eax
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx + 0x1c]
ja 0x41a615
mov edx, ecx
mov ecx, dword [ebx + 0x38]
call fcn.00414b90
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, ebx
call fcn.00417540
mov eax, dword [0x677014]
test eax, eax
je 0x41a629
call eax
push dword [ebx + 0x98]
push 0
push dword [esi + 4]
call fcn.005cbe10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x63cc14
push 0xba4c
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0040ed50
add esp, 0x10
mov edi, 0xb
test byte [esi + 0x18], 2
je 0x41a672
mov dl, 1
mov ecx, esi
call fcn.00415190
mov eax, dword [esi + 0x1c]
push 1
dec dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
push dword [esi]
push dword [eax + 0x28]
call dword [0x66b820]
add esp, 0xc
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x78], 0
jne 0x41a6a7
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41a6a7
mov ecx, ebx
call fcn.00417940
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret