Function at 0x401000
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4a99f8]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [0x4ac350], 0
mov byte [esp + 0xc8], 0
mov dword [esp + 0xc9], eax
mov dword [esp + 0xcd], eax
mov dword [esp + 0xd1], eax
mov dword [esp + 0xd5], eax
mov word [esp + 0xd9], ax
mov byte [esp + 0xdb], al
call dword [sym.imp.KERNEL32.DLL_GetACP]
push eax
lea ecx, [esp + 0xcc]
push 0x4914f4
push ecx
call fcn.00468a90
add esp, 0xc
lea edx, [esp + 0xc8]
push edx
push 0
call fcn.0046984a
push 0xfffffffffffffffd
call fcn.00469f71
add esp, 0xc
push 0x8001
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
push 0
mov dword [0x4ac358], 0x401860
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0041f270
mov ecx, dword [0x4ac354]
test ecx, ecx
jne 0x40110f
call fcn.00423550
mov edi, eax
test edi, edi
je 0x4010d9
mov eax, dword [edi + 0x10]
mov dword [eax + 0x58], 0x422e30
mov esi, dword [edi + 0x10]
push 0
xor ecx, ecx
xor eax, eax
mov ebx, edi
call fcn.0041ed80
add esp, 4
mov eax, edi
call fcn.004208b0
mov esi, dword [edi + 0x10]
push 0
mov ecx, 1
xor eax, eax
call fcn.0041ed80
mov ecx, edi
add esp, 4
mov dword [0x4ac354], ecx
mov eax, dword [esp + 0x10]
mov edi, ecx
mov dword [esp + 0x18], edi
call fcn.0041dfc0
push 8
push str._CMDLINE
lea esi, [edi + 0x40]
push edi
mov dword [esp + 0x40], esi
call fcn.00441320
mov ecx, dword [edi + 8]
add esp, 0xc
sub ecx, 0x10
push ecx
lea edx, [esp + 0x7c]
push edx
push esi
mov ebx, 4
push edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ebx
call fcn.00432790
add dword [edi + 8], 0xfffffff0
add esp, 0x10
push 0x82
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x401186
mov eax, dword [edi + 8]
mov dword [eax + 8], 0
jmp 0x401192
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov dword [ecx + 8], 2
add dword [edi + 8], 0x10
push 9
push 0x491504
push edi
call fcn.00441320
mov ecx, dword [edi + 8]
add esp, 0xc
sub ecx, 0x10
push ecx
lea edx, [esp + 0xbc]
push edx
push esi
push edi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd0], ebx
call fcn.00432790
mov eax, dword [0x4ab464]
add dword [edi + 8], 0xfffffff0
push 0
push eax
mov ebx, edi
call fcn.0041e640
mov eax, 1
add esp, 0x18
mov dword [esp + 0x2c], eax
cmp dword [0x4ab464], eax
jle 0x40143c
mov dword [esp + 0x20], 2
lea ecx, [ecx]
mov ecx, dword [0x4ab46c]
mov edx, dword [esp + 0x2c]
mov esi, dword [ecx + edx*4]
mov eax, esi
mov ecx, edi
call fcn.0041dfc0
mov ebx, dword [edi + 8]
mov ecx, dword [esp + 0x2c]
lea eax, [ebx - 0x20]
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push edi
call fcn.0042fff0
mov edx, dword [ebx - 0x10]
mov dword [eax], edx
mov ecx, dword [ebx - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebx - 8]
mov dword [eax + 8], edx
mov eax, dword [edi + 8]
add esp, 8
cmp dword [eax - 8], 4
jl 0x40126f
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x40126f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test byte [eax + 5], 4
je 0x40126f
mov ecx, dword [edi + 0x10]
and byte [eax + 5], 0xfb
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x18], edx
mov dword [ecx + 0x28], eax
add dword [edi + 8], 0xfffffff0
movzx eax, word [esi]
cmp eax, 0x2f
je 0x401284
cmp eax, 0x2d
jne 0x40141f
cmp word [esi + 2], ax
jne 0x40129c
lea ebx, [ebx]
mov ax, word [esi + 4]
add esi, 2
cmp ax, word [esi]
je 0x401290
add esi, 2
push 0x3d
push esi
call fcn.0046a414
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x401392
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x4012c8
mov eax, edi
call fcn.00431cf0
mov edx, dword [esp + 0x10]
mov ebx, dword [edi + 8]
sub edx, esi
sar edx, 1
add edx, edx
push edx
push esi
push edi
call fcn.00441320
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [edi + 8], 0x10
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
add esi, 0xfffffff0
add esp, 0xc
cmp eax, 4
je 0x40133e
cmp eax, 7
jne 0x40130d
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x40130d
lea esi, [eax + 0x18]
jmp 0x401343
call fcn.00431f20
test eax, eax
jne 0x40131e
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x401343
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x401334
mov eax, esi
call fcn.00431cf0
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x18]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
mov eax, esi
mov ecx, edi
call fcn.0041dfc0
mov ecx, dword [edi + 8]
lea eax, [ecx - 0x10]
cmp eax, ecx
jae 0x40137b
lea ecx, [eax - 0x10]
lea esp, [esp]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [ecx + 0x18]
mov dword [ecx + 8], edx
add eax, 0x10
add ecx, 0x10
cmp eax, dword [edi + 8]
jb 0x401360
mov eax, dword [esp + 0x10]
add dword [edi + 8], 0xfffffff0
add eax, 2
mov ecx, edi
call fcn.0041dfc0
jmp 0x401413
mov eax, dword [esp + 0x20]
cmp eax, dword [0x4ab464]
jge 0x4013fe
mov eax, dword [0x4ab46c]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + ebx*4 + 4]
mov edx, dword [eax + ebx*4]
mov ax, word [ecx]
cmp ax, word [edx]
je 0x4013fe
mov eax, esi
mov ecx, edi
call fcn.0041dfc0
mov ecx, dword [0x4ab46c]
mov eax, dword [ecx + ebx*4 + 4]
mov ecx, edi
call fcn.0041dfc0
mov edx, dword [0x4ab46c]
mov eax, dword [edx + ebx*4 + 4]
inc dword [esp + 0x20]
inc ebx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.0041dfc0
push ebx
mov eax, 0xfffffffc
call fcn.0041e9d0
mov edi, dword [esp + 0x1c]
add esp, 4
jmp 0x401413
mov eax, esi
mov ecx, edi
call fcn.0041dfc0
mov ebx, 0x4914f0
mov esi, edi
call fcn.0041e2b0
mov eax, 0xfffffffd
mov esi, edi
call fcn.0041e820
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x20]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [0x4ab464]
jl 0x401200
mov esi, dword [esp + 0x34]
push 5
push str._ARGV
push edi
call fcn.00441320
mov dword [esp + 0xb4], eax
mov eax, dword [edi + 8]
add esp, 0xc
sub eax, 0x10
push eax
lea ecx, [esp + 0xac]
push ecx
push esi
push edi
mov dword [esp + 0xc0], 4
call fcn.00432790
add dword [edi + 8], 0xfffffff0
mov eax, dword [edi + 8]
sub eax, dword [edi + 0x20]
mov edx, str.import_preload_
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], edx
push eax
xor ecx, ecx
lea esi, [esp + 0x60]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x88], esi
lea esi, [esp + 0x7c]
push 0x43f930
mov eax, edi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x70], ecx
mov dword [esp + 0x90], edi
mov dword [esp + 0x88], 0x422c60
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], ecx
call fcn.0043f840
mov esi, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
add esp, 0x1c
mov ebx, eax
mov eax, dword [esp + 0x44]
push 0
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
push eax
push ecx
call edx
mov ecx, dword [esp + 0x20]
sub dword [esi + 0x44], ecx
add esp, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0
test ebx, ebx
jne 0x40156a
mov eax, dword [edi + 8]
sub eax, 0x10
mov dword [esp + 0x2c], eax
sub eax, dword [edi + 0x20]
lea edx, [esp + 0x2c]
push eax
push edx
push 0x41ec60
xor edx, edx
mov eax, edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.0043f840
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 8]
add esp, 0xc
cmp edx, dword [ecx + 8]
jb 0x40155e
mov dword [ecx + 8], edx
mov dword [esp + 0x20], 0
test eax, eax
je 0x401572
mov dword [esp + 0x20], 1
push 1
push 0x491528
push str.preload.main
push edi
xor eax, eax
call fcn.0041fe40
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4016de
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
cmp eax, 4
je 0x4015e6
cmp eax, 7
jne 0x4015b5
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x4015b5
lea esi, [eax + 0x18]
jmp 0x4015eb
call fcn.00431f20
test eax, eax
jne 0x4015c6
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x4015eb
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x4015dc
mov eax, esi
call fcn.00431cf0
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x18]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x44]
cmp edx, dword [eax + 0x40]
jb 0x4015fd
mov eax, edi
call fcn.00431cf0
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x28]
jne 0x40160d
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
jmp 0x401615
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push eax
xor eax, eax
mov ecx, edi
call fcn.00440de0
mov dword [eax + 0x14], fcn.0041fb10
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov dword [ecx + 8], 6
add dword [edi + 8], 0x10
mov ebx, dword [edi + 8]
sub ebx, dword [edi + 0xc]
add esp, 4
sar ebx, 4
cmp dword [esp + 0x20], 0
jne 0x4016e5
mov eax, dword [esp + 0x10]
cmp eax, 3
jb 0x40166d
cmp byte [esi], 0xef
jne 0x40166d
cmp byte [esi + 1], 0xbb
jne 0x40166d
cmp byte [esi + 2], 0xbf
jne 0x40166d
add esi, 3
add eax, 0xfffffffd
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
mov eax, dword [0x4ac34c]
mov edx, 0x422c60
mov ecx, edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], 0
call fcn.0041ecf0
add esp, 4
test eax, eax
jne 0x4016e5
test ebx, ebx
jne 0x4016a2
xor edx, edx
jmp 0x4016b0
mov eax, ebx
mov ecx, edi
call fcn.0041d8c0
sub eax, dword [edi + 0x20]
mov edx, eax
mov eax, dword [edi + 8]
sub eax, 0x10
mov dword [esp + 0x10], eax
sub eax, dword [edi + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x41ec60
mov eax, edi
mov dword [esp + 0x20], 1
call fcn.0043f840
add esp, 0xc
test eax, eax
jmp 0x4016e3
cmp dword [esp + 0x20], 0
je 0x4016fd
mov edx, dword [0x4ac34c]
push 1
push edx
mov ebx, edi
call fcn.0041f710
add esp, 8
or ebx, 0xffffffff
jmp 0x40175b
mov eax, dword [edi + 8]
mov ecx, dword [eax - 8]
sub eax, 0x10
cmp ecx, 3
je 0x40174b
cmp ecx, 4
jne 0x401854
mov eax, dword [eax]
add eax, 0x10
lea edi, [esp + 0x20]
call fcn.004417f0
mov edi, dword [esp + 0x18]
test eax, eax
je 0x401854
fld qword [esp + 0x20]
mov dword [esp + 0xa0], 3
fstp qword [esp + 0x98]
lea eax, [esp + 0x98]
fld qword [eax]
fadd qword [0x496bd8]
fstp qword [esp + 0x18]
mov ebx, dword [esp + 0x18]
push 0xe
push 0x49153c
push edi
call fcn.00441320
mov edx, dword [esp + 0x40]
add esp, 0xc
push 0
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x90]
push ecx
push edx
push edi
mov dword [esp + 0xa4], 4
call fcn.004321c0
add dword [edi + 8], 0x10
mov eax, dword [edi + 8]
add eax, 0xfffffff0
add esp, 0x14
cmp eax, 0x492970
je 0x4017bc
cmp dword [eax + 8], 6
jne 0x4017bc
push 0
push eax
push edi
call fcn.0043f650
add esp, 0xc
mov eax, edi
call fcn.00431e80
mov eax, dword [0x4ac354]
test eax, eax
je 0x4017db
call fcn.004236a0
mov dword [0x4ac354], 0
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
push 0x4ada40
call esi
push 0x4ada20
call esi
push 0x4ada60
call esi
push 0x4ada00
call esi
mov eax, dword [0x4ac360]
call fcn.004236a0
mov eax, dword [0x4ac348]
mov dword [0x4ac360], 0
test eax, eax
je 0x401823
push eax
call fcn.0046aa52
add esp, 4
mov eax, dword [0x4ac344]
test eax, eax
je 0x401835
push eax
call fcn.0046aa52
add esp, 4
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00468a81
mov esp, ebp
pop ebp
ret 0x10
xor ebx, ebx
jmp 0x40175b