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

Disassembly:
push 0xffffffffffffffff
push 0x41dafb
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x42452c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42452c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd8]
mov esi, ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x24], ecx
movzx ecx, word [eax + 0x28]
mov eax, dword [eax + 0x24]
push ecx
push eax
lea ebp, [esi + 8]
push ecx
mov ecx, ebp
mov dword [esp + 0x28], esi
call fcn.00410620
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp word [esi + 0x30], 0
jne 0x41aadd
lea edx, [esp + 0x40]
push edx
call fcn.0041a810
add esp, 4
movzx ecx, word [eax + 0x28]
mov eax, dword [eax + 0x24]
push ecx
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0xdc], 0
call fcn.00410620
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x50]
add esp, 0xc
cmp eax, ecx
mov dword [esp + 0xd0], 0xffffffff
je 0x41aadd
test eax, eax
je 0x41aadd
mov ecx, dword [eax - 4]
push eax
call fcn.0040daa0
push ebp
call fcn.00416e40
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.MSVCR80.dll__ftime64]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 8
push 0
push 0x3e8
push eax
push ecx
call fcn.0041b7a0
mov edi, eax
movzx eax, word [esp + 0x30]
mov ebx, edx
cdq
add edi, eax
push str.XXXXXX
adc ebx, edx
push 6
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call fcn.00410550
mov dword [esp + 0xd0], 1
mov dword [esp + 0x20], 0
jmp 0x41ab58
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x70]
push eax
mov ecx, ebp
call fcn.00415a50
mov cx, word [esp + 0xc0]
movzx eax, cx
xor esi, esi
test eax, eax
mov byte [esp + 0xd0], 2
jbe 0x41abc8
cmp esi, eax
jb 0x41ab93
push str.Firebird::string___pos_out_of_range
call fcn.00404d90
add esp, 4
push 0
push 0x24
push ebx
push edi
call fcn.0041b9a0
mov cl, byte [ecx + str.abcdefghijklmnopqrstuvwxyz0123456789]
mov edi, dword [esp + 0xbc]
mov byte [edi + esi], cl
mov cx, word [esp + 0xc0]
mov edi, eax
movzx eax, cx
add esi, 1
cmp esi, eax
mov dword [esp + 0x3c], ebx
mov ebx, edx
jb 0x41ab93
mov edx, dword [esp + 0xbc]
movzx eax, cx
push eax
push edx
push eax
lea ecx, [esp + 0x78]
call fcn.00410650
push eax
call sub.MSVCR80.dll_memcpy
mov esi, dword [esp + 0x28]
add esp, 0xc
cmp byte [esi + 0x48], 0
mov eax, 0x180
je 0x41abfb
mov eax, 0x4000180
push 0
push eax
mov eax, dword [esp + 0x98]
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x41ac65
add dword [esp + 0x14], 1
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x70]
adc dword [esp + 0x18], 0
cmp eax, ecx
mov byte [esp + 0xd0], 1
je 0x41ac4d
test eax, eax
je 0x41ac4d
mov ecx, dword [eax - 4]
push eax
call fcn.0040daa0
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 0x100
mov dword [esp + 0x20], eax
jb 0x41ab50
jmp 0x41acab
movzx eax, word [esp + 0x94]
mov edx, dword [esp + 0x90]
push eax
push edx
push eax
mov ecx, ebp
call fcn.00410620
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x7c]
add esp, 0xc
cmp eax, ecx
mov byte [esp + 0xd0], 1
je 0x41acab
test eax, eax
je 0x41acab
mov ecx, dword [eax - 4]
push eax
call fcn.0040daa0
or edi, 0xffffffff
cmp dword [esi + 4], edi
jne 0x41acc0
push str.CreateFile
call fcn.00404bd0
add esp, 4
mov eax, dword [esp + 0xbc]
lea edx, [esp + 0x9c]
cmp eax, edx
mov byte [esi + 0x48], 0
mov dword [esp + 0xd0], edi
je 0x41acea
test eax, eax
je 0x41acea
mov ecx, dword [eax - 4]
push eax
call fcn.0040daa0
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0041b1f8
add esp, 0xc0
ret 8