Function at 0x401000
Capabilities:
Inspect load icon resource
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4b19fc]
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 [0x4b4374], 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 0x499598
push ecx
call fcn.0046fa90
add esp, 0xc
lea edx, [esp + 0xc8]
push edx
push 0
call fcn.00470847
push 0xfffffffffffffffd
call fcn.00470f6e
add esp, 0xc
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
mov dword [0x4b437c], 0x401920
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00422020
mov ecx, dword [0x4b4378]
test ecx, ecx
jne 0x40110f
call fcn.00426350
mov edi, eax
test edi, edi
je 0x4010d9
mov eax, dword [edi + 0x10]
mov dword [eax + 0x5c], 0x425c30
mov esi, dword [edi + 0x10]
push 0
xor ecx, ecx
xor eax, eax
mov ebx, edi
call fcn.00421b30
add esp, 4
mov eax, edi
call fcn.004236f0
mov esi, dword [edi + 0x10]
push 0
mov ecx, 1
xor eax, eax
call fcn.00421b30
mov ecx, edi
add esp, 4
mov dword [0x4b4378], ecx
mov eax, dword [esp + 0x10]
mov edi, ecx
mov dword [esp + 0x20], edi
call fcn.00420d50
push 8
push str._CMDLINE
lea ebx, [edi + 0x40]
push edi
mov dword [esp + 0x3c], ebx
call fcn.004480d0
mov ecx, dword [edi + 8]
add esp, 0xc
push 1
sub ecx, 0x10
push ecx
lea edx, [esp + 0x80]
push edx
push ebx
push edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], 4
call fcn.00438ab0
add esp, 0x14
push 0x82
mov esi, 0xfffffff0
add dword [edi + 8], esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x40118e
mov eax, dword [edi + 8]
mov dword [eax + 8], 0
jmp 0x40119a
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov dword [ecx + 8], 2
add dword [edi + 8], 0x10
push 9
push str._HAPPICON
push edi
call fcn.004480d0
mov ecx, dword [edi + 8]
add esp, 0xc
push 1
sub ecx, 0x10
push ecx
lea edx, [esp + 0xc0]
push edx
push ebx
push edi
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd4], 4
call fcn.00438ab0
mov eax, dword [0x4b3484]
add dword [edi + 8], esi
add esp, 0x14
push 0
push eax
mov ebx, edi
call fcn.004213f0
mov eax, 1
add esp, 8
mov dword [esp + 0x28], eax
cmp dword [0x4b3484], eax
jle 0x40144d
mov dword [esp + 0x18], 2
lea ecx, [ecx]
mov ecx, dword [0x4b348c]
mov edx, dword [esp + 0x28]
mov esi, dword [ecx + edx*4]
mov eax, esi
mov ecx, edi
call fcn.00420d50
mov ebx, dword [edi + 8]
mov ecx, dword [esp + 0x28]
lea eax, [ebx - 0x20]
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push edi
call fcn.004362f0
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 0x40127f
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x40127f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test byte [eax + 5], 4
je 0x40127f
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 0x401294
cmp eax, 0x2d
jne 0x40142f
cmp word [esi + 2], ax
jne 0x4012ac
lea ebx, [ebx]
mov ax, word [esi + 4]
add esi, 2
cmp ax, word [esi]
je 0x4012a0
add esi, 2
push 0x3d
push esi
call fcn.00471411
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4013a2
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x48]
cmp ecx, dword [eax + 0x44]
jb 0x4012d8
mov eax, edi
call fcn.00437ff0
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.004480d0
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 0x40134e
cmp eax, 7
jne 0x40131d
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x40131d
lea esi, [eax + 0x18]
jmp 0x401353
call fcn.00438220
test eax, eax
jne 0x40132e
mov edi, dword [esp + 0x20]
xor esi, esi
jmp 0x401353
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x48]
cmp ecx, dword [eax + 0x44]
jb 0x401344
mov eax, esi
call fcn.00437ff0
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x20]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
mov eax, esi
mov ecx, edi
call fcn.00420d50
mov ecx, dword [edi + 8]
lea eax, [ecx - 0x10]
cmp eax, ecx
jae 0x40138b
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 0x401370
mov eax, dword [esp + 0x10]
add dword [edi + 8], 0xfffffff0
add eax, 2
mov ecx, edi
call fcn.00420d50
jmp 0x401423
mov eax, dword [esp + 0x18]
cmp eax, dword [0x4b3484]
jge 0x40140e
mov eax, dword [0x4b348c]
mov ebx, dword [esp + 0x28]
mov ecx, dword [eax + ebx*4 + 4]
mov edx, dword [eax + ebx*4]
mov ax, word [ecx]
cmp ax, word [edx]
je 0x40140e
mov eax, esi
mov ecx, edi
call fcn.00420d50
mov ecx, dword [0x4b348c]
mov eax, dword [ecx + ebx*4 + 4]
mov ecx, edi
call fcn.00420d50
mov edx, dword [0x4b348c]
mov eax, dword [edx + ebx*4 + 4]
inc dword [esp + 0x18]
inc ebx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.00420d50
push ebx
mov eax, 0xfffffffc
call fcn.00421780
mov edi, dword [esp + 0x24]
add esp, 4
jmp 0x401423
mov eax, esi
mov ecx, edi
call fcn.00420d50
mov ebx, 0x499594
mov esi, edi
call fcn.00421040
mov eax, 0xfffffffd
mov esi, edi
call fcn.004215d0
mov eax, dword [esp + 0x28]
inc dword [esp + 0x18]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [0x4b3484]
jl 0x401210
mov esi, 0xfffffff0
push 5
push str._ARGV
push edi
call fcn.004480d0
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0xa8], eax
mov eax, dword [edi + 8]
push 1
sub eax, 0x10
push eax
lea ecx, [esp + 0xb0]
push ecx
push edx
push edi
mov dword [esp + 0xc4], 4
call fcn.00438ab0
add dword [edi + 8], esi
mov eax, dword [edi + 8]
sub eax, dword [edi + 0x20]
add esp, 0x14
push eax
xor ecx, ecx
mov edx, str.import_builtin_
lea esi, [esp + 0x50]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x6c]
lea esi, [esp + 0x6c]
push 0x4466b0
mov eax, edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x60], ecx
mov dword [esp + 0x80], edi
mov dword [esp + 0x78], 0x425a60
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
call fcn.004465c0
mov esi, dword [edi + 0x10]
mov ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x10]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x40]
push 0
push eax
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
push edx
call eax
mov ecx, dword [esp + 0x20]
sub dword [esi + 0x48], ecx
add esp, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0
test ebx, ebx
jne 0x401577
mov eax, dword [edi + 8]
sub eax, 0x10
mov dword [esp + 0x28], eax
sub eax, dword [edi + 0x20]
lea edx, [esp + 0x28]
push eax
push edx
push 0x421a10
xor edx, edx
mov eax, edi
mov dword [esp + 0x38], 0xffffffff
call fcn.004465c0
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 8]
add esp, 0xc
cmp edx, dword [ecx + 8]
jb 0x40156b
mov dword [ecx + 8], edx
mov dword [esp + 0x18], 0
test eax, eax
je 0x40157f
mov dword [esp + 0x18], 1
push 1
push 0x4995cc
push str.builtin.main
push edi
xor eax, eax
call fcn.00422c50
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4016ea
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
cmp eax, 4
je 0x4015f3
cmp eax, 7
jne 0x4015c2
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x4015c2
lea esi, [eax + 0x18]
jmp 0x4015f8
call fcn.00438220
test eax, eax
jne 0x4015d3
mov edi, dword [esp + 0x20]
xor esi, esi
jmp 0x4015f8
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x48]
cmp ecx, dword [eax + 0x44]
jb 0x4015e9
mov eax, esi
call fcn.00437ff0
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x20]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x48]
cmp edx, dword [eax + 0x44]
jb 0x40160a
mov eax, edi
call fcn.00437ff0
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x28]
jne 0x40161a
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
jmp 0x401622
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push eax
push 0
push edi
call fcn.00447b60
mov dword [eax + 0x14], fcn.00422920
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, 0xc
sar ebx, 4
cmp dword [esp + 0x18], 0
jne 0x4016f1
mov eax, dword [esp + 0x10]
cmp eax, 3
jb 0x401679
cmp byte [esi], 0xef
jne 0x401679
cmp byte [esi + 1], 0xbb
jne 0x401679
cmp byte [esi + 2], 0xbf
jne 0x401679
add esi, 3
add eax, 0xfffffffd
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
mov eax, dword [0x4b4370]
mov edx, 0x425a60
mov ecx, edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], 0
call fcn.00421aa0
add esp, 4
test eax, eax
jne 0x4016f1
test ebx, ebx
jne 0x4016ae
xor edx, edx
jmp 0x4016bc
mov eax, ebx
mov ecx, edi
call fcn.00420630
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 0x421a10
mov eax, edi
mov dword [esp + 0x20], 1
call fcn.004465c0
add esp, 0xc
test eax, eax
jmp 0x4016ef
cmp dword [esp + 0x18], 0
je 0x401709
mov edx, dword [0x4b4370]
push 1
push edx
mov ebx, edi
call fcn.00422520
add esp, 8
or ebx, 0xffffffff
jmp 0x401767
mov eax, dword [edi + 8]
mov ecx, dword [eax - 8]
sub eax, 0x10
cmp ecx, 3
je 0x401757
cmp ecx, 4
jne 0x401860
mov eax, dword [eax]
add eax, 0x10
lea edi, [esp + 0x18]
call fcn.00448320
mov edi, dword [esp + 0x20]
test eax, eax
je 0x401860
fld qword [esp + 0x18]
mov dword [esp + 0xa0], 3
fstp qword [esp + 0x98]
lea eax, [esp + 0x98]
fld qword [eax]
fadd qword [0x49f060]
fstp qword [esp + 0x20]
mov ebx, dword [esp + 0x20]
push 0xe
push str.__beforeUnload
push edi
call fcn.004480d0
mov edx, dword [esp + 0x3c]
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.004384e0
add dword [edi + 8], 0x10
mov eax, dword [edi + 8]
add eax, 0xfffffff0
add esp, 0x14
cmp eax, 0x49a128
je 0x4017c8
cmp dword [eax + 8], 6
jne 0x4017c8
push 0
push eax
push edi
call fcn.004463d0
add esp, 0xc
mov eax, edi
call fcn.00438180
mov eax, dword [0x4b4378]
test eax, eax
je 0x4017e7
call fcn.004264a0
mov dword [0x4b4378], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x4b5a80
call esi
push 0x4b5a60
call esi
push 0x4b5aa0
call esi
push 0x4b5a40
call esi
mov eax, dword [0x4b4384]
call fcn.004264a0
mov eax, dword [0x4b436c]
mov dword [0x4b4384], 0
test eax, eax
je 0x40182f
push eax
call fcn.004717c3
add esp, 4
mov eax, dword [0x4b4368]
test eax, eax
je 0x401841
push eax
call fcn.004717c3
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.0046fa81
mov esp, ebp
pop ebp
ret 0x10
xor ebx, ebx
jmp 0x401767