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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
test edi, edi
jne 0x41f34c
cmp byte [esi], 1
jne 0x41f342
mov cl, byte [esi + 1]
test cl, 2
je 0x41f342
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp + 0xc]
cmp edx, ebx
jne 0x41f2ab
cmp eax, edi
jne 0x41f2ad
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 0x41f342
jl 0x41f2bd
cmp edx, ebx
jae 0x41f342
test cl, 8
jne 0x41f3c1
add edx, 1
adc eax, 0
cmp edx, ebx
jne 0x41f342
cmp eax, edi
jne 0x41f342
cmp dword [esi + 0x40], 0
jne 0x41f342
mov eax, dword [ebp + 0x14]
and cl, 0xf9
mov byte [esi + 1], cl
mov ecx, dword [esi + 0x74]
mov dword [eax], 0
xor eax, eax
mov word [esi + 0x2a], ax
movzx eax, word [esi + 0x46]
mov edx, eax
inc eax
mov word [esi + 0x46], ax
cmp ax, word [ecx + 0x16]
jb 0x41f310
mov ecx, esi
mov word [esi + 0x46], dx
call fcn.0041f940
jmp 0x41f31d
cmp byte [ecx + 8], 0
jne 0x41f32d
mov ecx, esi
call fcn.0041f070
test eax, eax
je 0x41f32d
cmp eax, 0x65
je 0x41f342
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0041e610
cmp dword [esi + 0x18], ebx
jne 0x41f342
cmp dword [esi + 0x1c], edi
je 0x41f2a2
mov dword [esp + 0x14], 0
jmp 0x41f3ad
mov edx, dword [edi]
cmp word [edx + 8], 0xd
ja 0x41f3a1
mov eax, dword [edi + 4]
movzx ebx, word [eax + 8]
mov eax, dword [edx + 0x10]
mov al, byte [eax]
test al, al
sete cl
test al, al
setne al
lea ecx, [ecx*2 - 1]
lea eax, [eax*2 - 1]
mov byte [edi + 0xc], al
mov byte [edi + 0xd], cl
test bl, 4
je 0x41f38e
mov dword [esp + 0x14], 0x42e750
jmp 0x41f3a9
test bl, 0x19
jne 0x41f3a1
cmp dword [edx + 0x14], 0
mov dword [esp + 0x14], 0x42e980
je 0x41f3a9
mov dword [esp + 0x14], 0x42e730
mov byte [edi + 0xb], 0
mov ecx, esi
call fcn.0041ee20
test eax, eax
je 0x41f3d3
cmp eax, 0x10
jne 0x41f865
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 ecx, 1
lea edi, [esi + 0x74]
sub ecx, dword [ebp + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [edi]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
movzx ebx, word [edx + 0x16]
lea eax, [edx + 0x40]
dec ebx
mov dword [esp + 0x28], eax
mov edi, ebx
mov dword [esp + 0x30], ebx
sar edi, cl
lea ecx, [edx + 0x18]
cmp dword [esp + 0x14], 0
mov word [esi + 0x46], di
mov dword [esp + 0x1c], ecx
jne 0x41f4f0
mov cl, byte [edx + 3]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov byte [esp + 0xf], cl
mov ax, word [eax + edi*2]
mov esi, dword [esp + 0x1c]
mov ch, al
mov cl, ah
movzx ecx, cx
movzx eax, word [esi]
mov esi, dword [esp + 0x10]
and ecx, eax
add ecx, dword [edx + 0x44]
cmp byte [esp + 0xf], 0
je 0x41f45f
cmp byte [ecx], 0x80
jb 0x41f45e
mov eax, dword [edx + 0x3c]
nop
inc ecx
cmp ecx, eax
jae 0x41f724
cmp byte [ecx], 0x80
jae 0x41f450
inc ecx
lea edx, [esp + 0x38]
call fcn.004096b0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp ecx, dword [ebp + 0xc]
jg 0x41f491
jl 0x41f47e
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x41f494
lea edx, [edi + 1]
mov dword [esp + 0x20], edx
cmp edx, ebx
jle 0x41f4aa
or ebx, 0xffffffff
jmp 0x41f66a
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x41f4c6
jg 0x41f49f
cmp eax, edx
jbe 0x41f4c6
mov edx, dword [esp + 0x20]
lea ebx, [edi - 1]
cmp edx, ebx
jg 0x41f4bc
mov eax, dword [esp + 0x30]
lea edi, [ebx + edx]
mov edx, dword [esp + 0x24]
sar edi, 1
jmp 0x41f425
mov ebx, 1
jmp 0x41f66a
mov ebx, esi
mov esi, dword [esp + 0x24]
mov word [ebx + 0x46], di
cmp byte [esi + 8], 0
jne 0x41f74e
mov ecx, dword [esp + 0x28]
mov edx, edi
mov dword [esp + 0x20], edx
jmp 0x41f68a
mov eax, dword [eax]
mov ebx, dword [esp + 0x24]
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x1c]
movzx ecx, cx
movzx eax, word [eax]
and ecx, eax
movzx eax, byte [ebx + 0xb]
add ecx, dword [ebx + 0x44]
movzx edx, byte [ecx]
lea esi, [ecx + 1]
cmp edx, eax
ja 0x41f52f
push dword [esp + 0x18]
push esi
push edx
call dword [esp + 0x20]
add esp, 0xc
mov ebx, eax
jmp 0x41f62e
mov al, byte [esi]
test al, al
js 0x41f560
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
movzx eax, word [ebx + 0xe]
cmp edx, eax
ja 0x41f560
mov esi, dword [esp + 0x18]
lea eax, [ecx + 2]
push esi
push eax
push edx
call dword [esp + 0x20]
add esp, 0xc
mov ebx, eax
jmp 0x41f632
mov esi, dword [esp + 0x10]
movzx eax, byte [ebx + 0xa]
add esi, 0x18
sub ecx, eax
mov eax, dword [ebx + 0x50]
push esi
push ecx
push ebx
call eax
mov ebx, dword [esi]
add esp, 0xc
cmp ebx, 2
jl 0x41f88b
lea eax, [ebx + 0x12]
cdq
push edx
push eax
call fcn.004051e0
mov esi, eax
add esp, 8
test esi, esi
je 0x41f875
mov eax, dword [esp + 0x10]
xor edx, edx
push 0
push esi
push ebx
mov ecx, eax
mov word [eax + 0x46], di
call fcn.0041e8c0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x2c], eax
and byte [ecx + 1], 0xfb
test eax, eax
jne 0x41f808
push dword [esp + 0x18]
push esi
push ebx
call dword [esp + 0x20]
add esp, 0xc
mov ebx, eax
cmp dword [0x55a418], 0
je 0x41f624
mov eax, dword [0x560268]
test eax, eax
je 0x41f5f2
push eax
call dword [0x55a474]
add esp, 4
push esi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push esi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x41f62e
push eax
call dword [0x55a47c]
jmp 0x41f62b
push esi
call dword [0x55a448]
add esp, 4
mov esi, dword [esp + 0x18]
test ebx, ebx
jns 0x41f643
mov eax, dword [esp + 0x30]
lea edx, [edi + 1]
mov dword [esp + 0x20], edx
jmp 0x41f654
jle 0x41f7bc
mov edx, dword [esp + 0x20]
lea eax, [edi - 1]
mov dword [esp + 0x30], eax
cmp edx, eax
jg 0x41f666
lea edi, [eax + edx]
mov eax, dword [esp + 0x28]
sar edi, 1
jmp 0x41f4f0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 8], 0
jne 0x41f7a0
mov ebx, dword [esp + 0x10]
mov esi, eax
movzx eax, word [esi + 0x16]
cmp edx, eax
jl 0x41f69f
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x41f6bb
mov eax, dword [ecx]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x1c]
movzx ecx, cx
movzx eax, word [eax]
and ecx, eax
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax]
mov eax, dword [esp + 0x20]
mov esi, dword [ebx + 0xc]
movzx ecx, ax
mov al, byte [ebx + 0x44]
mov word [ebx + 0x46], cx
cmp al, 0x13
jge 0x41f770
and byte [ebx + 1], 0xf9
xor edi, edi
movsx eax, al
mov word [ebx + 0x2a], di
lea edi, [ebx + 0x74]
bswap edx
mov word [ebx + eax*2 + 0x48], cx
movsx ecx, byte [ebx + 0x44]
mov eax, dword [edi]
mov dword [ebx + ecx*4 + 0x78], eax
xor eax, eax
inc byte [ebx + 0x44]
mov ecx, esi
mov word [ebx + 0x46], ax
movzx eax, byte [ebx + 2]
push eax
push ebx
push edi
call fcn.0041b430
add esp, 0xc
test eax, eax
jne 0x41f85f
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
jmp 0x41f3e2
push 0x54b514
push 0xfdc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [ebx + 1], 2
mov dword [ebx + 0x18], eax
xor eax, eax
mov word [ebx + 0x2a], ax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x1c], ecx
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x54b514
push 0xfc2d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x2a], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov word [esi + 0x46], di
mov dword [eax], ebx
xor eax, eax
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx + 0x2a], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [eax], 0
xor eax, eax
mov word [ebx + 0x46], di
cmp byte [esi + 0xb], al
je 0x41f85f
push 0x54b514
push 0xfe31
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x2a], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x55a418], 0
je 0x41f86c
mov eax, dword [0x560268]
test eax, eax
je 0x41f824
push eax
call dword [0x55a474]
add esp, 4
push esi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push esi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x41f857
push eax
call dword [0x55a47c]
add esp, 4
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx + 0x2a], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x55a448]
jmp 0x41f854
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov eax, 7
mov word [ebx + 0x2a], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x54b514
push 0xfe12
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
mov ebx, dword [esp + 0x24]
add esp, 0x14
xor ecx, ecx
mov eax, 0xb
pop edi
pop esi
mov word [ebx + 0x2a], cx
pop ebx
mov esp, ebp
pop ebp
ret