Function at 0x436680
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4758c4
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x74], edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 7
xor eax, eax
mov word [ebp - 0x48], ax
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4366f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00404600
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x80], eax
mov edx, dword [eax]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
xor eax, eax
mov word [ebp - 0xb8], ax
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436770
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.00404600
mov byte [ebp - 4], 1
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x30]
call fcn.004117f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.00404570
call fcn.0042f5b0
lea ecx, [eax + 0x34]
lea eax, [ebp - 0x30]
cmp ecx, eax
je 0x4367cd
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call fcn.00404600
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, 1
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x18], eax
jbe 0x436b03
mov edi, 3
mov edx, 0x482694
mov ecx, dword [ebp - 0x80]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x6c], eax
mov esi, dword [eax]
nop word [eax + eax]
movzx eax, word [esi]
mov dword [ebp - 0x88], eax
movzx eax, word [edx]
mov ecx, eax
mov dword [ebp - 0x84], ecx
movzx ecx, word [esi]
cmp cx, ax
jne 0x43683b
add esi, 2
add edx, 2
sub edi, 1
jne 0x436810
xor eax, eax
jmp 0x43684e
mov eax, dword [ebp - 0x84]
cmp word [ebp - 0x88], ax
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
je 0x436a17
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
xor eax, eax
mov word [ebp - 0x60], ax
mov edi, dword [ebp - 0x6c]
mov edx, dword [edi]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436882
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.00404600
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call fcn.00411400
test al, al
je 0x436918
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0xf4]
call fcn.00411720
mov byte [ebp - 4], 8
or ebx, 1
mov dword [ebp - 0x68], ebx
mov edx, eax
lea ecx, [ebp - 0x10c]
call fcn.00404f50
mov dword [ebp - 4], 9
or ebx, 2
mov dword [ebp - 0x68], ebx
mov esi, dword [eax + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4368e8
mov eax, dword [eax]
mov ecx, 0x49d320
cmp dword [0x49d334], 8
cmovae ecx, dword [0x49d320]
mov edx, dword [0x49d330]
cmp edx, esi
jne 0x436918
push edx
mov edx, eax
call fcn.0040d150
add esp, 4
test eax, eax
mov byte [ebp - 0x61], 1
je 0x43691c
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 8
test bl, 2
je 0x436939
and ebx, 0xfffffffd
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x10c]
call fcn.00404570
mov dword [ebp - 4], 7
test bl, 1
je 0x436956
and ebx, 0xfffffffe
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0xf4]
call fcn.00404570
cmp byte [ebp - 0x61], 0
je 0x4369f6
call fcn.0042f5b0
mov esi, eax
mov edx, dword [edi]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
xor eax, eax
mov word [ebp - 0xa0], ax
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4369a0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.00404600
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x68]
lea eax, [ebp - 0xa0]
cmp ecx, eax
je 0x4369e7
cmp dword [ebp - 0x8c], 8
cmovae eax, dword [ebp - 0xa0]
push dword [ebp - 0x90]
push eax
call fcn.00404600
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa0]
call fcn.00404570
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.00404570
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, dword [ebp - 0x18]
jb 0x4367f0
jmp 0x436b00
mov esi, dword [0x49fba8]
test esi, esi
jne 0x436a62
push 0xb8
call fcn.0046c08a
mov esi, eax
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 4
push 0xb8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00414170
mov byte [ebp - 4], 5
mov word [esi + 0xb0], 1
mov byte [ebp - 4], 3
mov dword [0x49fba8], esi
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
xor eax, eax
mov word [ebp - 0xd0], ax
push 0xe
push str.TAFToolLog.txt
lea ecx, [ebp - 0xd0]
call fcn.00404600
mov byte [ebp - 4], 6
lea eax, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 8
cmovae eax, dword [ebp - 0xd0]
lea ecx, [esi + 4]
push ecx
push 2
push eax
call fcn.004130d0
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
push 0
add ecx, esi
test eax, eax
je 0x436ae0
push 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
add ebx, ebp
invalid
push 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov word [esi + 0xb0], 0x101
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
call fcn.00404570
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 0xb
push 0x458
call fcn.0046c08a
mov esi, eax
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 0xc
push 0x458
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.0041d6f0
mov esi, eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x78], esi
mov ecx, dword [esi]
mov edx, dword [ecx + 0x30]
push edi
mov ecx, esi
call edx
test eax, eax
js 0x436d09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x436b72
mov eax, dword [ecx]
push 1
call dword [eax + 0x40]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404570
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c079
mov esp, ebp
pop ebp
ret 0x10
push 0x482700
call fcn.00988742
nop
push eax
lea ecx, [ebp - 0x124]
call fcn.004047c0
push 0x4985a0
lea eax, [ebp - 0x124]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3