Function at 0x445768
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x445df3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4457d0
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
mov edx, esi
call fcn.00419808
mov edi, eax
mov edx, dword [ebp - 8]
mov eax, dword [edi + 4]
call dword [edi]
test al, al
je 0x4457cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x445e08
inc esi
dec ebx
jne 0x4457a1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0044561c
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov eax, ebx
cmp eax, 0x53
jg 0x445892
je 0x445d16
cmp eax, 0x11
jg 0x445850
je 0x445b3b
cmp eax, 0x10
ja case.0x445805.1
jmp dword [eax*4 + 0x44580c]
cmp eax, 0x1c
jg 0x44587b
je 0x445a0c
sub eax, 0x14
je 0x4459c3
sub eax, 2
je 0x445b1f
sub eax, 4
je 0x445d94
jmp case.0x445805.1
sub eax, 0x1d
je 0x445dba
sub eax, 0x1a
je 0x4459d8
jmp case.0x445805.1
cmp eax, 0xb017
jg 0x4458e8
je 0x445b8d
cmp eax, 0xb000
jg 0x4458cf
je 0x445c26
sub eax, 0x112
je 0x44592a
add eax, 0xffffffe0
sub eax, 7
jb 0x445af3
sub eax, 0x1e1
je 0x445dcd
jmp case.0x445805.1
sub eax, 0xb001
je 0x445c9f
sub eax, 0x15
je 0x445b6b
jmp case.0x445805.1
cmp eax, 0xb020
jg 0x44590e
je 0x445d30
sub eax, 0xb01a
je 0x445cd8
sub eax, 5
je 0x445d16
jmp case.0x445805.1
sub eax, 0xb031
je 0x445d69
add eax, 0xfffffff2
sub eax, 2
jb 0x445b4a
jmp case.0x445805.1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
and eax, 0xfff0
sub eax, 0xf020
je 0x445945
sub eax, 0x100
je 0x445952
jmp 0x44595f
mov eax, dword [ebp - 4]
call fcn.00445e2c
jmp 0x445de9
mov eax, dword [ebp - 4]
call fcn.00445f0c
jmp 0x445de9
push ebp
call fcn.004456e0
pop ecx
jmp 0x445de9
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
jne 0x445de9
mov byte [0x496c2c], 1
jmp 0x445de9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445de9
call fcn.004428a0
jmp 0x445de9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0043b5f8
test eax, eax
je 0x4459b7
push ebp
call fcn.0044571c
pop ecx
jmp 0x445de9
push ebp
call fcn.004456e0
pop ecx
jmp 0x445de9
mov eax, dword [ebp - 8]
mov dword [eax], 0x27
push ebp
call fcn.004456e0
pop ecx
jmp 0x445de9
mov eax, dword [ebp - 4]
call fcn.00445e10
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x445de9
push 0
push 0
push 0xb01a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_GetVersion
push ebp
call fcn.004456e0
pop ecx
jmp 0x445de9
push ebp
call fcn.004456e0
pop ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 0xa5], al
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x445a51
mov eax, dword [ebp - 4]
call fcn.0044532c
push 0
push 0
push 0xb000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_GetVersion
jmp 0x445de9
mov eax, dword [ebp - 4]
call fcn.004452cc
push 0
push 0
push 0xb001
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_GetVersion
jmp 0x445de9
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x445ab6
cmp byte [0x48f520], 0
jne 0x445aaa
mov eax, dword [ebp - 4]
call fcn.0044532c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x445aaa
call fcn.0043b880
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xb4], edx
push ebp
call fcn.004456e0
pop ecx
jmp 0x445de9
push ebp
call fcn.004456e0
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb4], 0
jne 0x445ae6
cmp byte [0x48f520], 0
jne 0x445ae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0043b7bc
mov edx, dword [ebp - 4]
mov dword [edx + 0xb4], eax
mov eax, dword [ebp - 4]
call fcn.004452d4
jmp 0x445de9
mov esi, dword [ebp - 8]
mov esi, dword [esi + 8]
push esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 8]
add ebx, 0xbc00
push ebx
mov eax, dword [ebp - 8]
push esi
call sub.KERNEL32.DLL_HeapFree
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x445de9
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x445de9
call fcn.0040f290
call fcn.00405388
jmp 0x445de9
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x445de9
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov eax, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00447b08
and eax, 0x7f
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x445de9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004462b8
test al, al
je 0x445de9
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x445de9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445de9
mov ebx, eax
mov eax, ebx
call fcn.00458494
test eax, eax
je 0x445de9
mov eax, ebx
call fcn.00458494
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
test eax, eax
je 0x445de9
mov eax, ebx
call fcn.00458494
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
test eax, eax
je 0x445de9
mov byte [0x48f508], 0
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
mov eax, ebx
call fcn.00458494
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
mov edx, 0x112
mov eax, ebx
call fcn.004519e8
push esi
call sub.KERNEL32.DLL_LockResource
mov byte [0x48f508], 1
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x445de9
mov eax, dword [ebp - 4]
cmp word [eax + 0x13a], 0
je 0x445c45
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x13c]
call dword [ebx + 0x138]
mov eax, dword [0x496c1c]
cmp dword [eax + 0x44], 0
je 0x445c93
mov eax, dword [0x496c1c]
call fcn.004480b8
test al, al
je 0x445c93
mov eax, dword [0x496c1c]
mov eax, dword [eax + 0x44]
call fcn.00458494
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
test eax, eax
jne 0x445c93
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00458494
cmp eax, dword [0x496c44]
je 0x445c93
mov eax, dword [0x496c44]
push eax
call sub.KERNEL32.DLL_LockResource
xor eax, eax
mov dword [0x496c44], eax
jmp 0x445de9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov dword [0x496c44], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x132], 0
je 0x445de9
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x134]
call dword [ebx + 0x130]
jmp 0x445de9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0043b5f8
test eax, eax
jne 0x445de9
call sub.KERNEL32.DLL_GetCommandLineA
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x445de9
xor eax, eax
call fcn.0043b91c
test eax, eax
je 0x445de9
push eax
call sub.KERNEL32.DLL_LockResource
jmp 0x445de9
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 8]
movzx edx, word [edx + 4]
mov eax, dword [ebp - 4]
call fcn.00446924
jmp 0x445de9
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x445d51
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 4]
call fcn.004464f8
jmp 0x445de9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 4]
call fcn.00446554
jmp 0x445de9
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
jne 0x445d83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb8]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x445de9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb8], eax
jmp 0x445de9
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov eax, dword [0x4917ec]
mov eax, dword [eax]
call fcn.0045d520
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00445674
push ebp
call fcn.004456e0
pop ecx
jmp 0x445de9
mov eax, dword [0x496c20]
call fcn.00444860
push ebp
call fcn.004456e0
pop ecx
jmp 0x445de9
call fcn.004320c4
call fcn.00432228
jmp 0x445de9
xor eax, eax
call fcn.0041f660
jmp 0x445de9
push ebp
call fcn.004456e0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x445e08
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret