Function at 0x407000
Capabilities:
Accept command line arguments
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41999b
mov eax, dword fs:[0]
push eax
mov eax, 0x2a08
call fcn.0040cce0
mov eax, dword [0x41f120]
xor eax, esp
mov dword [esp + 0x2a04], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f120]
xor eax, esp
push eax
lea eax, [esp + 0x2a1c]
mov dword fs:[0], eax
push 0x103
mov edi, ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040c2c0
lea eax, [esp + 0x10c]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407070
sub eax, edx
xor esi, esi
xor ecx, ecx
test eax, eax
jle 0x4070a0
mov dl, byte [esp + ecx + 0x100]
cmp dl, 0x22
je 0x407099
mov byte [esp + esi + 0x204], dl
add esi, 1
add ecx, 1
cmp ecx, eax
jl 0x407083
mov byte [esp + esi + 0x204], 0
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x204]
mov byte [esp + eax + 0x100], cl
add eax, 1
test cl, cl
jne 0x4070b0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push eax
mov dword [edi + 4], eax
call ebp
mov edx, dword [edi + 4]
push 0
push 0
add eax, 0xfffffffc
push eax
push edx
call ebp
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea esi, [edi + 0x24]
push esi
push ecx
call ebx
mov edx, dword [esi]
mov eax, dword [edi + 4]
push 0
push 0
push edx
push eax
call ebp
mov eax, dword [0x41b178]
mov ecx, dword [str.D4CC6D9D_3ED9_4B26]
mov edx, dword [0x41b174]
mov dword [esp + 0x70], eax
mov al, byte [0x41b182]
mov byte [esp + 0x7a], al
mov dword [esp + 0x68], ecx
mov ecx, dword [0x41b17c]
mov dword [esp + 0x6c], edx
mov dx, word [0x41b180]
lea eax, [esp + 0x68]
mov dword [esp + 0x74], ecx
mov word [esp + 0x78], dx
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407170
mov ecx, dword [str._8192_DC9A8C5160FA]
mov edx, dword [0x41b160]
mov dword [eax], ecx
mov ecx, dword [0x41b164]
mov dword [eax + 4], edx
mov edx, dword [0x41b168]
mov dword [eax + 8], ecx
mov cx, word [0x41b16c]
mov dword [eax + 0xc], edx
mov dl, byte [0x41b16e]
mov word [eax + 0x10], cx
push 0
mov byte [eax + 0x12], dl
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
push 0x24
lea ecx, [esp + 0xd8]
push ecx
push edx
call ebx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xd0]
push ecx
mov byte [esp + 0xf8], 0
call fcn.0040c941
add esp, 8
test eax, eax
je 0x407345
mov edx, dword [edi + 4]
push 0
push 0
push 0
push edx
mov byte [esp + 0x27], 0
call ebp
mov dword [esp + 0x20], 0
cmp byte [esp + 0x17], 0
jne 0x407345
mov eax, dword [edi + 4]
push 1
push 0
push 0
push eax
call ebp
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x270f
lea edx, [esp + 0x314]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 4]
push edx
push eax
call ebx
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, 0x24
lea ecx, [esp + 0x68]
lea edx, [esp + edx + 0x308]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x407269
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x407251
test eax, eax
je 0x4072c6
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4072b8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4072c6
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4072b8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4072c6
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4072b8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4072c6
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x4072c6
test esi, esi
mov eax, 1
jg 0x4072c8
or eax, 0xffffffff
jmp 0x4072c8
xor eax, eax
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x4072eb
add edx, 1
cmp edx, 0x26eb
mov dword [esp + 0x1c], edx
jb 0x407241
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40730e
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea esi, [edx + eax]
mov edx, dword [edi + 4]
push 0
lea ecx, [esi + 0x24]
push ecx
push edx
call ebp
mov dword [edi + 0x24], esi
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 0x14
mov dword [esp + 0x20], eax
jl 0x407206
cmp byte [esp + 0x17], 0
jne 0x407345
push 0
lea eax, [esp + 0xd0]
push eax
push str.Data_header_not_found_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4075f1
mov eax, dword [edi + 4]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x40]
push edx
push eax
call ebx
mov al, byte [esp + 0x34]
cmp al, 0x52
mov dword [edi + 0x2c], ebp
jne 0x40737f
cmp byte [esp + 0x35], 0x41
jne 0x40739f
cmp byte [esp + 0x36], 0x57
jne 0x40739f
cmp byte [esp + 0x37], 0x53
jne 0x40739f
mov dword [edi + 0x2c], ebp
jmp 0x40739f
cmp al, 0x4c
jne 0x40739f
cmp byte [esp + 0x35], 0x5a
jne 0x40739f
cmp byte [esp + 0x36], 0x4d
jne 0x40739f
cmp byte [esp + 0x37], 0x41
jne 0x40739f
mov dword [edi + 0x2c], 2
cmp dword [edi + 0x2c], ebp
push ebp
jne 0x407482
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push eax
call ebx
cmp dword [esp + 0x24], ebp
jle 0x40746a
push 0x210
call fcn.0040be3b
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x28]
mov esi, eax
mov eax, dword [edi + 4]
push edx
push eax
call ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push eax
call ebx
mov eax, dword [edi + 4]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push eax
call ebx
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi + 4]
push edx
lea eax, [esi + 0x104]
push eax
push ecx
call ebx
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esi + 0x208]
push eax
push ecx
call ebx
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esi + 0x20c]
push eax
push ecx
call ebx
push esi
lea ecx, [edi + 8]
call fcn.00406830
add ebp, 1
cmp ebp, dword [esp + 0x24]
jl 0x4073c5
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [edi + 0x18]
push eax
push ecx
call ebx
jmp 0x4075f1
mov ecx, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call ebx
mov ecx, dword [edi + 4]
push ebp
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x34]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x28]
push edx
call fcn.0040c74a
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + 4]
add esp, 4
push 0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push edx
call ebx
mov eax, dword [esp + 0x2c]
add eax, 1
push eax
call fcn.0040c74a
add esp, 4
cmp dword [edi + 0x2c], 2
mov dword [edi + 0x28], eax
jne 0x40754a
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x17]
call fcn.00407a60
mov eax, dword [edi + 0x28]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
push esi
lea ecx, [esp + 0x27]
mov dword [esp + 0x2a34], 0
call fcn.00407a80
test eax, eax
je 0x407536
push 0
push 0x41b140
push str.BAD_DEC_LZMA
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x17]
mov dword [esp + 0x2a24], 0xffffffff
call fcn.00407a70
push esi
call fcn.0040be1d
mov edx, dword [edi + 0x28]
mov eax, dword [edx]
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
mov esi, 4
mov dword [esp + 0x20], 0
jle 0x4075e8
lea ecx, [ecx]
push 0x210
call fcn.0040be3b
mov ebx, eax
mov eax, dword [edi + 0x28]
mov ebp, dword [eax + esi]
add esi, 4
push ebp
add eax, esi
push eax
push ebx
call fcn.0040cd10
mov eax, dword [edi + 0x28]
add esi, ebp
mov ebp, dword [eax + esi]
add esi, 4
add eax, esi
push ebp
push eax
lea eax, [ebx + 0x104]
push eax
call fcn.0040cd10
mov ecx, dword [edi + 0x28]
add esi, ebp
mov edx, dword [esi + ecx]
mov dword [ebx + 0x208], edx
mov eax, dword [edi + 0x28]
mov ecx, dword [esi + eax + 4]
add esi, 4
add esp, 0x1c
mov dword [ebx + 0x20c], ecx
push ebx
lea ecx, [edi + 8]
add esi, 4
call fcn.00406830
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jl 0x407570
mov edx, dword [edi + 0x28]
mov eax, dword [esi + edx]
mov dword [edi + 0x18], eax
mov ecx, dword [esp + 0x2a1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a04]
xor ecx, esp
call fcn.0040c26c
add esp, 0x2a14
ret