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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4204
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x100], 0
jne 0x41e0b1
mov eax, dword [ebx + 0xb4]
lea esi, [ebx + 0xb4]
xor edi, edi
cmp eax, edi
je 0x41dfe4
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x14]
call eax
test al, al
je 0x41e0b1
push esi
lea esi, [ebx + 0xb8]
call fcn.00422630
mov al, 1
jmp 0x41e0eb
cmp dword [ebx + 0xdc], edi
je 0x41e0b1
push ebx
call fcn.0041dae0
lea edx, [esp + 0x8c]
lea ecx, [ebx + 0xc8]
push edx
mov byte [esp + 0x16], 1
call fcn.0040c190
add esp, 4
cmp byte [ebp + 8], 0
mov dword [esp + 0xb8], edi
jne 0x41e111
push 4
call fcn.004abce7
add esp, 4
cmp eax, edi
je 0x41e038
mov dword [eax], 0xffffffff
jmp 0x41e03a
xor eax, eax
lea edi, [ebx + 0xac]
mov dword [esi], eax
call fcn.00423880
mov esi, dword [ebx + 0xb4]
push 0x8000000
push 3
push 1
push Ordinal_4
lea edi, [ebx + 0xc8]
call fcn.0040c6c0
test al, al
jne 0x41e0b5
mov edx, 0x4cb7f8
lea eax, [esp + 0x38]
call fcn.004016b0
mov byte [esp + 0xb8], 1
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x3c]
push eax
push 0x10000002
mov ecx, ebx
call edx
lea esi, [esp + 0x38]
call fcn.00449530
lea esi, [esp + 0x8c]
call fcn.00449530
xor al, al
jmp 0x41e0eb
mov ecx, dword [ebx + 0xb4]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
lea esi, [ebx + 0xb4]
push ecx
mov ecx, ebx
call edx
push esi
lea esi, [ebx + 0xb8]
mov byte [esp + 0x16], al
call fcn.00422630
lea esi, [esp + 0x8c]
call fcn.00449530
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004abc64
mov esp, ebp
pop ebp
ret 4
mov edx, str..part0
lea eax, [esp + 0x38]
call fcn.004016b0
lea eax, [esp + 0x38]
lea esi, [esp + 0x8c]
call fcn.00406b20
test eax, eax
lea esi, [esp + 0x38]
sete byte [esp + 0x13]
call fcn.00449530
cmp byte [esp + 0x13], 0
je 0x41e0db
mov esi, 7
mov dword [esp + 0x14], edi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
push edi
push 0x4cfcc8
lea eax, [esp + 0x78]
push str._s_d
push eax
mov byte [esp + 0xc8], 2
call fcn.00407230
add esp, 0x10
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
lea eax, [ebx + 0xc8]
mov byte [esp + 0xb8], 3
push eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], 0x2e
call fcn.0040af60
cmp eax, 0xffffffff
je 0x41e1eb
push eax
xor ecx, ecx
lea esi, [esp + 0x20]
lea edx, [ebx + 0xc8]
call fcn.00407b30
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0xc4], 4
call fcn.004017d0
mov byte [esp + 0xb8], 3
call fcn.00449530
jmp 0x41e1ff
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0xc8]
push eax
lea eax, [esp + 0x44]
call fcn.004017d0
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x3c]
push edx
lea edi, [esp + 0x5c]
call fcn.004028e0
mov eax, edi
push eax
mov byte [esp + 0xc4], 5
call fcn.0040b850
add esp, 0xc
test al, al
je 0x41e341
lea ecx, [ecx]
push 4
call fcn.004abce7
add esp, 4
test eax, eax
je 0x41e248
mov dword [eax], 0xffffffff
mov esi, eax
jmp 0x41e24a
xor esi, esi
lea edi, [ebx + 0xb4]
mov dword [edi], esi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41e26a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e26a
mov dword [esi], 0xffffffff
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x41e279
lea eax, [esp + 0x58]
push 0
push 0x8000000
push 3
push 0
push 1
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x41e361
lea ecx, [esp + 0x70]
push ecx
mov ecx, str..part0
call fcn.0040a940
test eax, eax
jne 0x41e2c8
mov edx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [edx + 0x14]
push eax
mov ecx, ebx
call edx
test al, al
mov byte [esp + 0x12], al
je 0x41e3db
push edi
lea esi, [ebx + 0xb8]
call fcn.00422630
mov eax, dword [esp + 0x14]
add eax, 1
push eax
push 0x4cfcc8
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
push str._s_d
push eax
call fcn.00407230
add esp, 0x10
mov byte [esp + 0xb8], 3
cmp dword [esp + 0x6c], 8
jb 0x41e313
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004abbe4
add esp, 4
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x3c]
push eax
lea edi, [esp + 0x5c]
call fcn.004028e0
mov ecx, edi
push ecx
mov byte [esp + 0xc4], 5
call fcn.0040b850
add esp, 0xc
test al, al
jne 0x41e230
lea esi, [esp + 0x54]
call fcn.00449530
lea esi, [esp + 0x38]
call fcn.00449530
lea esi, [esp + 0x70]
call fcn.00449530
jmp 0x41e0db
mov esi, dword [edi]
test esi, esi
je 0x41e36c
call fcn.0041dc50
mov edx, 0x4cb7f8
lea eax, [esp + 0x1c]
mov dword [edi], 0
call fcn.004016b0
mov byte [esp + 0xb8], 6
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x20]
push edx
push 0x10000002
mov ecx, ebx
call eax
lea esi, [esp + 0x1c]
call fcn.00449530
lea esi, [esp + 0x54]
call fcn.00449530
lea esi, [esp + 0x38]
call fcn.00449530
lea esi, [esp + 0x70]
call fcn.00449530
lea esi, [esp + 0x8c]
call fcn.00449530
xor al, al
jmp 0x41e0eb
mov esi, dword [edi]
test esi, esi
je 0x41e3e6
call fcn.0041dc50
mov dword [edi], 0
jmp 0x41e3ad