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

Disassembly:
sub esp, 0x4a4
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x49c], eax
mov eax, dword [esp + 0x4ac]
push ebx
push ebp
mov ebp, dword [esp + 0x4b0]
push esi
push edi
xor ebx, ebx
push 0x208
mov esi, ecx
lea ecx, [esp + 0x98]
push ebx
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x9c], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x2c
lea edx, [esp + 0x58]
push ebx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x5c], ebx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
push 0x206
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2a6]
push ebx
push eax
mov dword [esp + 0x30], ebx
mov word [esp + 0x2ac], bx
call sub.MSVCR80.dll_memset
mov byte [esp + 0x96], bl
add esp, 0xc
lea ebx, [ebp + 0x2c]
xor edi, edi
mov dword [esp + 0x80], 0xf750e6c3
mov word [esp + 0x84], 0x38ee
mov word [esp + 0x86], 0x11d1
mov byte [esp + 0x88], 0x85
mov byte [esp + 0x89], 0xe5
mov byte [esp + 0x8b], 0xc0
mov byte [esp + 0x8c], 0x4f
mov byte [esp + 0x8d], 0xc2
mov byte [esp + 0x8e], 0x95
mov byte [esp + 0x8f], 0xee
call fcn.00416670
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x1c]
push edx
call eax
test eax, eax
je 0x416233
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x4c], ebx
je 0x416233
push 0x30
lea ecx, [esp + 0x54]
push edi
push ecx
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
push edi
push edi
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], edi
mov dword [esp + 0x7c], 1
mov dword [esp + 0x88], 0x10
call eax
cmp eax, 1
jne 0x416214
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x416214
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00569ecc
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x416210
mov edx, dword [esp + 0x10]
push edx
push edi
mov edi, eax
push edi
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
push edi
lea eax, [esp + 0x18]
push eax
push ebx
call ecx
test eax, eax
je 0x416210
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x40], eax
mov eax, esi
mov dword [esp + 0x64], 2
mov dword [esp + 0x68], edx
mov dword [esp + 0x24], 0x24
mov dword [esp + 0x3c], edi
call fcn.00415e60
push 0x104
push eax
lea ecx, [esp + 0x2a8]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
lea edx, [esp + 0x2a0]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x14]
push 0
push ecx
push edi
push edx
call eax
mov ebx, eax
test ebx, ebx
je 0x4161f8
mov esi, 0x20c
jmp 0x416140
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x94]
push ecx
push ebx
mov dword [esp + 0x9c], esi
call edx
test eax, eax
je 0x41618b
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x84]
lea eax, [esp + 0x98]
push edx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x24]
push 0xffffffffffffffff
call eax
test eax, eax
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
je 0x4161ae
cmp eax, 0x800b0101
je 0x4161ae
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x14]
push 0
push eax
push edi
push ecx
mov dword [esp + 0x30], ebx
call edx
mov ebx, eax
test ebx, ebx
jne 0x416140
jmp 0x4161f8
sub esp, 0x30
mov edi, esp
mov ecx, 0xc
lea esi, [esp + 0x80]
push ebp
mov dword [esp + 0x54], 1
rep movsd dword es:[edi], dword [esi]
call fcn.004163b0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
push 0
push ebx
push eax
call ecx
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x84]
push eax
push 0xffffffffffffffff
mov dword [esp + 0x78], 2
call ecx
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push 0
push edx
call eax
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x416228
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [esp + 0x20], 1
jne 0x416233
xor eax, eax
jmp 0x416238
mov eax, 0x80004005
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00569ed6
add esp, 0x4a4
ret 8