Function at 0x1036f41
Capabilities:
Accept command line arguments

Disassembly:
push 0xa0
mov eax, 0x10425e6
call fcn.0103d8b2
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x38]
call fcn.01036b3a
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], ebx
je 0x103771a
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 2
mov esi, 0x104c1b0
mov ecx, esi
cmp dword [0x104c5a8], ebx
je 0x1036fc8
mov dword [0x104c5a8], ebx
push ebx
call fcn.0103784d
mov ecx, eax
call fcn.0102b6bb
mov ecx, eax
call fcn.01012965
push ebx
mov ecx, esi
call fcn.01037ad6
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
jmp 0x1037705
call fcn.0103b136
test eax, eax
je 0x1037705
push 0x10398d6
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.01036e8e
mov byte [ebp - 4], 3
cmp dword [ebp + 8], 1
jne 0x1037655
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x60], edi
cmp edi, 3
je 0x103703f
cmp edi, 0xffffffff
je 0x103703f
cmp edi, 0xf
je 0x103703f
push edi
mov ecx, esi
call fcn.01037d03
test eax, eax
je 0x103720f
push 0x1005170
push 0x1005928
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x103720f
mov byte [ebp - 0x28], 1
push dword [ebp - 0x34]
push dword [sym.imp.msvcrt.dll_fclose]
push dword [ebp - 0x28]
lea eax, [ebp - 0xac]
push eax
call fcn.01036ec9
mov byte [ebp - 4], 4
push 0x1005928
push dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x28]
lea eax, [ebp - 0xa0]
push eax
call fcn.01036f05
mov byte [ebp - 4], 5
cmp edi, 0x13
je 0x1037087
push 1
mov ecx, esi
call fcn.010377e7
mov edi, 0xbbef
push 1
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028f8a
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 6
cmp dword [ebp - 0x30], 2
jne 0x10370db
push 1
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028fac
push eax
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_class_CHString_const____thiscall_CHString::operator_unsigned_short_int_const__
cmp dword [ebp - 0x30], ebx
je 0x10370f8
push 1
push ebx
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028f65
push ebx
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028ff3
mov dword [ebp - 0x5c], eax
push ebx
push ebx
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028fce
push 1
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028dda
push 0x100591c
lea ecx, [ebp - 0x58]
call fcn.01007b81
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1c]
call fcn.010085be
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x103716c
call fcn.0100830c
mov dword [ebp - 0x58], ebx
push 0x1005918
lea ecx, [ebp - 0x4c]
call fcn.01007b2f
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1c]
call fcn.01008638
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4c]
cmp ecx, ebx
je 0x1037199
call fcn.0100830c
mov dword [ebp - 0x4c], ebx
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01012aaa
push eax
lea ecx, [ebp - 0x44]
call fcn.01007b81
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x1c]
call fcn.01008638
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x10371d7
call fcn.0100830c
mov dword [ebp - 0x44], ebx
push 0x1005820
lea ecx, [ebp - 0x50]
call fcn.01007b2f
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x1c]
call fcn.01008638
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x50]
cmp ecx, ebx
je 0x1037204
call fcn.0100830c
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1037246
mov eax, dword [eax]
jmp 0x1037248
push ebx
mov ecx, esi
call fcn.01037ad6
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x7c]
push eax
call fcn.01036ce1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x38], 1
jne 0x103723d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
call fcn.0103d966
ret
xor eax, eax
push ebx
push ebx
push ebx
push 1
push eax
call fcn.01033879
push 1
mov ecx, esi
call fcn.010379dd
cmp byte [0x104c1a8], bl
jne 0x103756c
mov dword [ebp - 0x2c], ebx
push 0x1ffe
call fcn.0103d496
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x103742e
lea eax, [ebp - 0x2c]
push eax
push 0x1016cef
lea eax, [ebp - 0x6c]
push eax
call fcn.010347dd
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0x28], 1
jne 0x10372a2
push dword [ebp - 0x34]
jmp 0x10372a8
push dword [sym.imp.msvcrt.dll__iob]
push 0xffe
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_fgetws]
add esp, 0xc
cmp eax, ebx
je 0x1037425
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x2c]
call fcn.01032b92
test eax, eax
je 0x10373f4
push dword [ebp - 0x40]
push 0x1016cef
lea eax, [ebp - 0x94]
push eax
call fcn.01016e0b
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x3c]
push eax
push 0x1016cef
lea eax, [ebp - 0x88]
push eax
call fcn.010347dd
mov byte [ebp - 4], 0xd
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
call fcn.01032b15
test eax, eax
je 0x1037396
push dword [ebp - 0x3c]
mov edi, 0x104c0fc
mov ecx, edi
call fcn.01018a52
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.01016ded
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x94]
push eax
call fcn.01016d37
cmp byte [ebp - 0x28], 1
jne 0x103736b
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
call fcn.01036d62
mov eax, dword [eax]
push ebx
push ebx
push ebx
push 1
push eax
call fcn.01033879
mov eax, dword [0x104c110]
lea edi, [eax - 1]
push edi
mov ecx, 0x104c0fc
call fcn.01036cbf
cmp word [eax], 0xa
jne 0x10373e5
push edi
mov ecx, 0x104c0fc
call fcn.01036cbf
xor ecx, ecx
mov word [eax], cx
jmp 0x10373e5
mov dword [ebp - 0x20], 1
push edi
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6bb
mov ecx, eax
call fcn.010129b1
push ebx
mov ecx, esi
call fcn.01037ad6
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.01016ded
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x94]
push eax
call fcn.01016d37
mov byte [ebp - 4], 6
lea eax, [ebp - 0x6c]
push eax
call fcn.01016ded
jmp 0x103745d
mov dword [ebp - 0x20], 1
push edi
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6bb
mov ecx, eax
call fcn.010129b1
push ebx
mov ecx, esi
call fcn.01037ad6
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
jmp 0x10373e5
mov dword [ebp - 0x20], 1
jmp 0x10373e5
mov dword [ebp - 0x20], 1
push edi
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6bb
mov ecx, eax
call fcn.010129b1
push ebx
mov ecx, esi
call fcn.01037ad6
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
cmp byte [0x104c1a8], bl
jne 0x103756c
push ebx
mov ecx, esi
call fcn.010379dd
push ebx
push dword [ebp - 0x5c]
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028fce
cmp dword [ebp - 0x30], ebx
je 0x10374a9
push 1
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028f65
push 1
mov ecx, esi
call fcn.01037ad6
cmp dword [ebp - 0x20], ebx
jne 0x103756c
push ebx
mov ecx, esi
call fcn.010379ba
mov ecx, esi
call fcn.01037a78
cmp byte [0x104c1a8], bl
jne 0x103756c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x104c0fc
call fcn.01036d62
push dword [eax]
mov ecx, esi
call fcn.0103a2da
mov edi, eax
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
cmp edi, 2
je 0x103756c
push 1
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028f8a
mov edi, eax
cmp edi, 1
jne 0x1037529
mov ecx, esi
call fcn.01037a6c
push eax
call fcn.01036e44
cmp edi, 2
je 0x1037537
call fcn.01036be4
test eax, eax
je 0x103756c
call fcn.01036c4b
test eax, eax
je 0x103756c
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6bb
mov ecx, eax
call fcn.01012d75
cmp eax, 1
jne 0x1037644
cmp edi, 2
jne 0x10375ab
call fcn.01036be4
test eax, eax
jne 0x10375ab
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
cmp dword [ebp - 0x60], 0x13
je 0x1037586
push ebx
mov ecx, esi
call fcn.010377e7
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa0]
push eax
call fcn.01016d37
mov byte [ebp - 4], 3
lea eax, [ebp - 0xac]
push eax
call fcn.01036cfd
jmp 0x10376f8
push ebx
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6bb
mov ecx, eax
call fcn.01012d5e
cmp edi, 2
jne 0x10375de
push 1
push ebx
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.010296af
push 1
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028f65
cmp dword [ebp - 0x24], 2
jne 0x1037644
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.01007b81
mov byte [ebp - 4], 0xe
cmp dword [eax], ebx
je 0x1037617
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1037619
xor eax, eax
push 1
push eax
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.010296af
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x1037644
call fcn.0100830c
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
jmp 0x1037087
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, 0x104c0fc
call fcn.01018a52
cmp dword [0x104c110], ebx
je 0x10376f8
push 1
mov ecx, esi
call fcn.01037ad6
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x104c0fc
call fcn.01036d62
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x104c0fc
call fcn.01036d83
cmp edi, dword [eax]
je 0x10376ab
cmp word [edi], 0x20
je 0x10376ab
inc edi
inc edi
mov dword [ebp - 0x24], edi
jmp 0x103768c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x104c0fc
call fcn.01036d83
cmp edi, dword [eax]
je 0x10376f8
push edi
mov ecx, esi
call fcn.0103a2da
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
push 1
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6c3
mov ecx, eax
call fcn.01028f8a
cmp eax, 1
jne 0x10376f8
mov ecx, esi
call fcn.01037a6c
push eax
call fcn.01036e44
mov byte [ebp - 4], 2
lea eax, [ebp - 0x7c]
push eax
call fcn.01036ce1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x1037761
call fcn.0100830c
mov dword [ebp - 0x1c], ebx
jmp 0x1037761
mov esi, 0x104c1b0
mov ecx, esi
call fcn.0103784d
mov ecx, eax
call fcn.0102b6bb
mov ecx, eax
call fcn.01012b64
test eax, eax
je 0x103774f
push ebx
mov ecx, esi
call fcn.0103784d
push eax
mov ecx, esi
call fcn.01037844
mov ecx, eax
call fcn.01028706
push ebx
mov ecx, esi
call fcn.01037ad6
mov ecx, esi
call fcn.01037900
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x38], 1
jne 0x1037770
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
jmp 0x103723d