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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2fc
push ebx
push esi
push edi
xor ebx, ebx
push 0x2c
lea eax, [esp + 0x44]
push ebx
push eax
mov edi, 1
mov dword [esp + 0x48], ebx
call sub.MSVCR80.dll_memset
xor eax, eax
push 0x208
lea ecx, [esp + 0x10c]
push ebx
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x110], ebx
call sub.MSVCR80.dll_memset
push 0x63
lea edx, [esp + 0xad]
push ebx
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], 0x64
mov byte [esp + 0xb4], bl
call sub.MSVCR80.dll_memset
mov al, 0xc2
mov byte [esp + 0x49], al
mov byte [esp + 0x4d], al
mov eax, dword [ebp + 0xc]
add esp, 0x24
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0xaac56b
mov word [esp + 0x20], 0xcd44
mov word [esp + 0x22], 0x11d0
mov byte [esp + 0x24], 0x8c
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0xc0
mov byte [esp + 0x28], 0x4f
mov byte [esp + 0x2a], 0x95
mov byte [esp + 0x2b], 0xee
je 0x4180bf
cmp dword [ebp + 0x10], ebx
je 0x4180bf
mov edi, dword [ebp + 8]
cmp dword [edi + 0x4c], ebx
je 0x417fc5
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x417fc5
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x94]
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push edx
call eax
test eax, eax
je 0x417fc5
mov eax, dword [esp + 0x10]
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fbef
mov ecx, dword [esp + 0x14]
lea edx, [ecx*4 + 2]
push edx
push ebx
push eax
mov dword [esp + 0x24], eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebx
jbe 0x417fab
mov edi, dword [esp + 0x14]
nop
movzx eax, byte [esp + esi + 0x90]
push eax
push str._02X
push 2
push edi
call dword [sym.imp.MSVCR80.dll__snwprintf]
mov eax, dword [esp + 0x20]
add esi, 1
add esp, 0x10
add edi, 4
cmp esi, eax
jb 0x417f80
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x4c]
push ebx
push ebx
push eax
mov eax, dword [edi + 0x40]
lea ecx, [esp + 0x9c]
push ecx
push edx
call eax
mov esi, eax
cmp esi, ebx
jne 0x418002
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], 1
lea edx, [esp + 0x2c]
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], 0x100
jmp 0x418050
mov ecx, dword [edi + 0x48]
push ebx
lea eax, [esp + 0xfc]
push eax
push esi
call ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xfc]
mov dword [esp + 0x7c], eax
mov eax, 2
mov dword [esp + 0x74], edx
mov dword [esp + 0x6c], 0x24
mov dword [esp + 0x78], ecx
mov dword [esp + 0x50], eax
lea edx, [esp + 0x6c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 1
mov dword [esp + 0x64], ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x14]
push ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x48], 0x30
call edx
mov ecx, dword [ebp + 0x10]
neg eax
sbb eax, eax
add eax, 1
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x418094
cmp eax, 0xffffffff
je 0x418094
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4180a5
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, ebx
je 0x4180b4
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
push ebx
push esi
push edx
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc