Function at 0x404820
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e9181
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x194c
call fcn.005c0da0
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x1948], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x1960]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esp + 0x20], esi
call fcn.0059b847
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x404886
mov dword [eax], vtable.CImpIDispatch.0
mov dword [eax + 4], ebx
jmp 0x404888
xor eax, eax
push 4
mov dword [esi + 0xa8], eax
call fcn.005ae439
cmp eax, ebx
je 0x4048a1
mov dword [eax], vtable.CCustomOccManager.0
jmp 0x4048a3
xor eax, eax
push eax
call fcn.005a643f
add esp, 4
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], 8
mov dword [esp + 0x80], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esi + 0xa4]
mov edi, 1
push edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
call sub.gdiplus.dll_GdiplusStartup
mov ecx, esi
call fcn.005ad1e1
push 0x609fe8
mov ecx, esi
call fcn.005afa7b
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x206
lea ecx, [esp + 0xf32]
push ebx
push ecx
mov esi, eax
mov word [esp + 0xf38], bx
call fcn.005be600
add esp, 0xc
push 0x104
lea edx, [esp + 0xf30]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 7
mov dword [esp + 0x110], eax
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
mov dword [esp + 0x1968], ebx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
mov byte [esp + 0x1968], 1
cmp dword [esp + 0x20], edi
jle 0x4049f4
mov esi, dword [esi + 4]
mov eax, esi
lea edx, [eax + 2]
jmp 0x4049b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4049b0
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0xc8]
call fcn.00402770
push str.__r_t_n
mov eax, esi
call fcn.0042b630
add esp, 4
push str.__r_t_n
mov eax, esi
call fcn.0042b6a0
add esp, 4
cmp dword [esp + 0xd4], ebx
jne 0x404a07
push 0xd
push str.ExeConfig.ini
lea esi, [esp + 0xc8]
call fcn.00402770
mov edi, 7
lea eax, [esp + 0xf2c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404a23
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf30]
push eax
lea esi, [esp + 0x2c]
call fcn.00402770
mov ecx, esi
push ecx
lea esi, [esp + 0xe0]
mov byte [esp + 0x196c], 2
call fcn.00429f00
add esp, 4
mov byte [esp + 0x1968], 4
cmp dword [esp + 0x3c], 8
jb 0x404a7a
mov edx, dword [esp + 0x28]
push edx
call fcn.0059b877
add esp, 4
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.00429c30
add esp, 8
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x100]
mov byte [esp + 0x1970], 5
call fcn.00402580
mov esi, 8
mov byte [esp + 0x1968], 4
cmp dword [esp + 0x74], esi
jb 0x404ada
mov edx, dword [esp + 0x60]
push edx
call fcn.0059b877
add esp, 4
lea eax, [esp + 0xf8]
push eax
call fcn.0042a550
add esp, 4
test al, al
jne 0x404b7e
lea ecx, [esp + 0xf8]
push ecx
call fcn.00404150
add esp, 4
test al, al
jne 0x404b7e
cmp dword [esp + 0xf4], esi
jb 0x404b1f
mov edx, dword [esp + 0xe0]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xd8], esi
mov word [esp + 0xe0], bx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], edi
jb 0x404b4e
mov eax, dword [esp + 0xc4]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x110], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
jb 0x4052b7
mov ecx, dword [esp + 0xfc]
push ecx
jmp 0x4052af
push 0x206
lea edx, [esp + 0x154a]
push ebx
push edx
mov word [esp + 0x1550], bx
call fcn.005be600
add esp, 0xc
push 0x206
lea eax, [esp + 0xd2a]
push ebx
push eax
mov word [esp + 0xd30], bx
call fcn.005be600
add esp, 0xc
push 0x206
lea ecx, [esp + 0xb22]
push ebx
push ecx
mov word [esp + 0xb28], bx
call fcn.005be600
add esp, 0xc
push 0x206
lea edx, [esp + 0x91a]
push ebx
push edx
mov word [esp + 0x920], bx
call fcn.005be600
add esp, 0xc
push 0x206
lea eax, [esp + 0x113a]
push ebx
push eax
mov word [esp + 0x1140], bx
call fcn.005be600
add esp, 0xc
push 0x206
lea ecx, [esp + 0x1342]
push ebx
push ecx
mov word [esp + 0x1348], bx
call fcn.005be600
add esp, 0xc
cmp dword [esp + 0x110], esi
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x18], 0xffffffff
jae 0x404c51
lea esi, [esp + 0xfc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x1340]
push eax
lea ecx, [esp + 0x113c]
push ecx
lea edx, [esp + 0x920]
push edx
lea eax, [esp + 0xb2c]
push eax
lea ecx, [esp + 0xd38]
push ecx
lea eax, [esp + 0x155c]
call fcn.00404070
add esp, 0x18
test al, al
jne 0x404c9b
mov esi, 8
jmp 0x404b06
push 0x206
lea edx, [esp + 0x1752]
push ebx
push edx
mov word [esp + 0x1758], bx
call fcn.005be600
add esp, 0xc
lea ecx, [esp + 0x174c]
lea eax, [esp + 0x914]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404ced
cmp dx, bx
je 0x404ce9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404ced
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x404cc7
xor eax, eax
jmp 0x404cf2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x404d26
cmp dword [esp + 0xf4], 8
mov ecx, dword [esp + 0xe0]
jae 0x404d0e
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x914]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x404d15
lea eax, [esp + 0x914]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404d30
sub eax, edx
sar eax, 1
mov esi, 0x5c
cmp word [esp + eax*2 + 0x912], si
je 0x404d77
lea eax, [esp + 0x914]
lea edx, [eax + 2]
jmp 0x404d60
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404d60
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x914], si
lea eax, [esp + 0xd24]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404d90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xd28]
push eax
lea esi, [esp + 0x48]
call fcn.00402770
mov byte [esp + 0x1968], 6
lea eax, [esp + 0x914]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404de0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x918]
push ecx
lea esi, [esp + 0x88]
call fcn.00402770
lea edx, [esp + 0x40]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x1970], 7
call fcn.00429c30
add esp, 8
cmp dword [esp + 0x98], 8
jb 0x404e3d
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0059b877
add esp, 4
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov byte [esp + 0x1968], 0xa
cmp dword [esp + 0x58], 8
jb 0x404e6f
mov edx, dword [esp + 0x44]
push edx
call fcn.0059b877
add esp, 4
lea eax, [esp + 0xb1c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404e93
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb20]
push eax
lea esi, [esp + 0x64]
call fcn.00402770
mov byte [esp + 0x1968], 0xb
lea eax, [esp + 0x914]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404ed3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x918]
push ecx
lea esi, [esp + 0x2c]
call fcn.00402770
lea edx, [esp + 0x5c]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x1970], 0xc
call fcn.00429c30
add esp, 8
cmp dword [esp + 0x3c], 8
jb 0x404f27
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0059b877
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
mov esi, 8
mov byte [esp + 0x1968], 0xf
cmp dword [esp + 0x74], esi
jb 0x404f54
mov edx, dword [esp + 0x60]
push edx
call fcn.0059b877
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x48]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.00402580
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x196c], 0x10
call fcn.0042a550
add esp, 4
test al, al
sete byte [esp + 0x17]
mov byte [esp + 0x1968], 0xf
cmp dword [esp + 0x58], esi
jb 0x404fb8
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0059b877
add esp, 4
cmp byte [esp + 0x17], bl
je 0x405098
cmp dword [esp + 0x12c], esi
jb 0x404fdb
mov edx, dword [esp + 0x118]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x148], esi
mov dword [esp + 0x12c], edi
mov dword [esp + 0x128], ebx
mov word [esp + 0x118], bx
jb 0x40500a
mov eax, dword [esp + 0x134]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xf4], esi
mov dword [esp + 0x148], edi
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], bx
jb 0x405039
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xd8], esi
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
jb 0x405068
mov edx, dword [esp + 0xc4]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x110], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
jb 0x4052b7
mov eax, dword [esp + 0xfc]
push eax
jmp 0x4052af
lea edi, [esp + 0x14c]
call fcn.00405500
mov byte [esp + 0x1968], 0x11
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov ecx, edi
sub esp, 0x1c
mov dword [edx + 0x20], ecx
lea edx, [esp + 0x135c]
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.004024d0
sub esp, 0x1c
mov byte [esp + 0x19a4], 0x12
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
mov esi, 7
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x13c]
mov word [ecx + 4], bx
call fcn.00402580
sub esp, 0x1c
mov byte [esp + 0x19c0], 0x13
lea edx, [esp + 0x118c]
mov eax, esp
mov dword [esp + 0x10c], esp
call fcn.004024d0
sub esp, 0x1c
mov byte [esp + 0x19dc], 0x14
lea edx, [esp + 0x988]
mov eax, esp
mov dword [esp + 0x130], esp
call fcn.004024d0
sub esp, 0x1c
mov byte [esp + 0x19f8], 0x15
mov ecx, esp
mov dword [esp + 0x148], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x1c8]
mov word [ecx + 4], bx
call fcn.00402580
sub esp, 0x1c
mov byte [esp + 0x1a14], 0x16
lea edx, [esp + 0x15f0]
mov eax, esp
mov dword [esp + 0x15c], esp
call fcn.004024d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x174], esp
mov byte [esp + 0x1a30], 0x17
push 0xffffffffffffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x1e4]
mov word [ecx + 4], bx
call fcn.00402580
mov ecx, edi
mov byte [esp + 0x1a30], 0x11
call fcn.004085c0
mov ecx, edi
call fcn.005a131b
mov ecx, edi
mov byte [esp + 0x1968], 0xf
call fcn.00405c40
mov edi, 8
cmp dword [esp + 0x12c], edi
jb 0x4051fb
mov ecx, dword [esp + 0x118]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x148], edi
mov dword [esp + 0x12c], esi
mov dword [esp + 0x128], ebx
mov word [esp + 0x118], bx
jb 0x40522a
mov edx, dword [esp + 0x134]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xf4], edi
mov dword [esp + 0x148], esi
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], bx
jb 0x405259
mov eax, dword [esp + 0xe0]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xd8], edi
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
jb 0x405288
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x110], edi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
jb 0x4052b7
mov edx, dword [esp + 0xfc]
push edx
call fcn.0059b877
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1960]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1948]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret