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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479220
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x493f58]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x493f58]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ecx
mov word [esp + 0x4c], dx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x40], dl
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
lea esi, [eax + 0x38]
mov byte [esp + 0x78], 1
cmp dword [esi + 0x14], 8
jb 0x41d59f
mov esi, dword [esi]
mov ebx, dword [eax + 0x104]
push ecx
push 0x80
push 3
push ecx
push 1
push 0x80000000
mov dword [esp + 0x30], ebx
push esi
and ebx, 0xff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
jne 0x41d5fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call fcn.00424750
mov ebx, eax
push ebx
push edi
push esi
push str.Cannot_open_file_for_reading:__s__Error__d___s_
call fcn.00424710
push ebx
call fcn.0044bac5
add esp, 0x14
jmp 0x41d689
test esi, esi
jne 0x41d612
push 2
call fcn.0044c911
add esp, 4
xor ecx, ecx
mov word [eax], cx
jmp 0x41d653
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d617
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
call fcn.0044c911
mov edi, eax
add esp, 4
mov ecx, esi
sub edi, esi
lea esp, [esp]
movzx edx, word [ecx]
mov word [ecx + edi], dx
add ecx, 2
test dx, dx
jne 0x41d640
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edi
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00424050
test eax, eax
jns 0x41d68e
call fcn.00401d30
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x41d784
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
mov eax, edx
cmp esi, 0xffff
jle 0x41d73e
cmp ecx, 8
jae 0x41d6c3
lea eax, [esp + 0x4c]
mov edi, dword [esp + 0x5c]
cmp ecx, 8
lea eax, [eax + edi*2]
mov ecx, edx
jae 0x41d6d5
lea ecx, [esp + 0x4c]
test eax, eax
je 0x41d6dd
sub eax, ecx
sar eax, 1
mov ecx, esi
sar ecx, 0xa
sub ecx, 0x2840
push ecx
push 1
push eax
lea ecx, [esp + 0x58]
call fcn.0041a830
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov eax, edx
cmp ecx, 8
jae 0x41d708
lea eax, [esp + 0x4c]
mov edi, dword [esp + 0x5c]
cmp ecx, 8
lea eax, [eax + edi*2]
mov ecx, edx
jae 0x41d71a
lea ecx, [esp + 0x4c]
test eax, eax
jne 0x41d72c
and esi, 0x3ff
sub esi, 0x2400
jmp 0x41d761
sub eax, ecx
and esi, 0x3ff
sar eax, 1
sub esi, 0x2400
jmp 0x41d761
cmp ecx, 8
jae 0x41d747
lea eax, [esp + 0x4c]
mov edi, dword [esp + 0x5c]
cmp ecx, 8
lea eax, [eax + edi*2]
mov ecx, edx
jae 0x41d759
lea ecx, [esp + 0x4c]
test eax, eax
je 0x41d761
sub eax, ecx
sar eax, 1
push esi
push 1
push eax
lea ecx, [esp + 0x58]
call fcn.0041a830
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d6a4
lea edi, [esp + 0x1c]
call fcn.00423ed0
mov ecx, dword [esp + 0x10]
push ecx
lea edi, [esp + 0x50]
call fcn.0041d7f0
add esp, 4
lea edi, [esp + 0x1c]
mov byte [esp + 0x78], 0
call fcn.00423ed0
mov edx, dword [esp + 0x48]
push edx
call fcn.0044bac5
add esp, 4
cmp dword [esp + 0x60], 8
jb 0x41d7cd
mov eax, dword [esp + 0x4c]
push eax
call fcn.0044bc75
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0044bab6
mov esp, ebp
pop ebp
ret