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

Disassembly:
push 0xffffffffffffffff
push 0x100591eb
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007fa04]
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.10045a00
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp word [esi + 0x30], 0
jne 0x1004a1ad
lea edx, [esp + 0x40]
push edx
call fcn.10049f10
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.10045a00
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 0x1004a1ad
test eax, eax
je 0x1004a1ad
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
push ebp
call fcn.10046250
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.10052ad0
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.10045930
mov dword [esp + 0xd0], 1
mov dword [esp + 0x20], 0
jmp 0x1004a228
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.10005690
mov cx, word [esp + 0xc0]
movzx eax, cx
xor esi, esi
test eax, eax
mov byte [esp + 0xd0], 2
jbe 0x1004a298
cmp esi, eax
jb 0x1004a263
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
push 0
push 0x24
push ebx
push edi
call fcn.100528f0
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 0x1004a263
mov edx, dword [esp + 0xbc]
movzx eax, cx
push eax
push edx
push eax
lea ecx, [esp + 0x78]
call fcn.10045a30
push eax
call sub.MSVCR80.dll_memcpy
mov esi, dword [esp + 0x28]
add esp, 0xc
cmp byte [esi + 0x48], 0
mov eax, 0x180
je 0x1004a2cb
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 0x1004a335
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 0x1004a31d
test eax, eax
je 0x1004a31d
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 0x100
mov dword [esp + 0x20], eax
jb 0x1004a220
jmp 0x1004a37b
movzx eax, word [esp + 0x94]
mov edx, dword [esp + 0x90]
push eax
push edx
push eax
mov ecx, ebp
call fcn.10045a00
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 0x1004a37b
test eax, eax
je 0x1004a37b
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
or edi, 0xffffffff
cmp dword [esi + 4], edi
jne 0x1004a390
push str.CreateFile
call fcn.10044d70
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 0x1004a3ba
test eax, eax
je 0x1004a3ba
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
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.10052756
add esp, 0xc0
ret 8