Function at 0x104a04a
Capabilities:
Accept command line arguments
Check if file exists
Check mutex on windows
Check os version
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb50
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xb3c], edi
mov dword [ebp - 0xb40], ebx
call fcn.010819a4
xor esi, esi
inc esi
push esi
call fcn.01081ae7
mov edx, 0x1016198
xor ecx, ecx
call fcn.01081c57
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x8005
mov dword [0x10bceb4], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x10c1180
push edi
call fcn.0105d737
cmp dword [0x10c11b0], ebx
jne 0x104a0bc
cmp dword [0x10c1210], ebx
je 0x104a127
push edi
call dword [sym.imp.msvcrt.dll__strdup]
cmp eax, ebx
pop ecx
je 0x104a0ce
mov dword [ebp - 0xb3c], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x104a0d9
sub eax, edx
mov esi, eax
call edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov edi, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
pop ecx
shl esi, 1
call edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov edi, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor esi, esi
rep stosb byte es:[edi], al
inc esi
mov eax, dword [ebp + 8]
mov dword [0x10f682c], eax
mov eax, dword [0x10c119c]
mov dword [0x109ab70], eax
mov eax, dword [0x10c11bc]
mov dword [0x109ab78], eax
mov eax, dword [0x10c11a8]
cmp eax, ebx
mov dword [0x109ab74], eax
je 0x104a15d
mov dword [0x109ab70], esi
mov dword [0x10c119c], esi
push 0x10bd1e0
mov dword [0x10bd1e0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
push ebx
push 0x1016188
call edi
test eax, eax
je 0x104a18b
mov dword [0x10bcebc], esi
cmp dword [0x10c11d8], ebx
je 0x104a7e8
push 0x104
lea eax, [ebp - 0x928]
push eax
mov dword [ebp - 0xb38], 0xf053
mov dword [ebp - 0xb48], ebx
mov dword [ebp - 0xb40], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x104a1cd
mov esi, 0x643
jmp 0x104ad51
push 0x209
lea eax, [ebp - 0xb34]
push eax
push 0x10c156c
push 0x1016178
lea eax, [ebp - 0x928]
push eax
push ebx
call fcn.0107e1c6
test eax, eax
je 0x104a1c3
push 0x1016168
mov byte [0x1106960], bl
mov byte [0x10f6960], bl
call fcn.01071ac0
mov dword [esp], 0xfffa
mov edi, 0x10f6960
push edi
push 0xf054
push ebx
call fcn.010312a2
push dword [ebp - 0xb3c]
mov esi, 0x1106960
push edi
push 0x1016160
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push esi
call fcn.01071aad
call fcn.01070eb2
test eax, eax
jne 0x104a25b
mov dword [ebp - 0xb38], 0xf004
jmp 0x104a731
cmp dword [0x10bd1e4], 4
jbe 0x104a27b
push 0x10bd1e0
mov dword [0x10bd1e0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
jmp 0x104a285
call fcn.0103499d
mov byte [0x10bd27a], al
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x104a2c4
mov byte [eax], bl
lea eax, [ebp - 0x108]
push 0x5c
push eax
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x104a2c4
mov byte [eax], bl
call fcn.010728fb
lea eax, [ebp - 0x108]
push eax
call fcn.01049f74
test eax, eax
jne 0x104a3de
push 0x104
lea eax, [ebp - 0x720]
push eax
push 0x100f8bc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x104a3cf
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x1016148
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x104a3cf
cmp dword [0x10bcebc], ebx
je 0x104a34d
lea eax, [ebp - 0x720]
push 0x5c
push eax
call edi
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x104a34d
push 3
push 0x1016144
push edi
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x104a34d
mov byte [edi], bl
push fcn.0107c2b8
push fcn.01071929
call fcn.0108e8c8
lea eax, [ebp - 0x720]
push eax
push 0x10c1428
push ebx
push ebx
lea eax, [ebp - 0x824]
push eax
push 0x10c1320
call fcn.01092d49
cmp eax, 0xa007
mov dword [ebp - 0xb38], eax
jne 0x104a397
mov dword [ebp - 0xb38], 0xf0f8
jmp 0x104a731
cmp eax, 2
jne 0x104a3ab
mov dword [ebp - 0xb38], 0xf0fa
jmp 0x104a731
cmp eax, ebx
je 0x104a731
push eax
push 0x1016118
call fcn.01071ad5
pop ecx
pop ecx
mov dword [ebp - 0xb38], 0xf0f7
jmp 0x104a731
mov dword [ebp - 0xb38], 0xf0f9
jmp 0x104a731
xor edi, edi
cmp dword [0x10999a8], ebx
je 0x104a40f
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0105eacc
test eax, eax
jne 0x104a40f
inc edi
cmp dword [edi*4 + 0x10999a8], ebx
jne 0x104a3e8
cmp dword [edi*4 + 0x10999a8], ebx
jne 0x104a427
push 0x10160e4
call fcn.01071aad
jmp 0x104a731
cmp dword [0x10999a8], ebx
mov dword [ebp - 0xb44], ebx
mov edi, 0x10c1320
mov eax, 0x10999a8
je 0x104a4a9
mov dword [ebp - 0xb3c], eax
push dword [eax]
lea eax, [ebp - 0x414]
push 0x10160d8
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.01070fc9
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x104a525
mov eax, dword [ebp - 0xb3c]
inc dword [ebp - 0xb44]
add eax, 4
cmp dword [eax], ebx
mov dword [ebp - 0xb3c], eax
jne 0x104a445
mov eax, 0x10999a8
cmp dword [0x10999a8], ebx
mov dword [ebp - 0xb44], ebx
je 0x104a5e4
mov dword [ebp - 0xb3c], eax
push dword [eax]
lea eax, [ebp - 0x414]
push 0x10160d0
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.01070fc9
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x104a5b9
mov eax, dword [ebp - 0xb3c]
inc dword [ebp - 0xb44]
add eax, 4
cmp dword [eax], ebx
mov dword [ebp - 0xb3c], eax
jne 0x104a4c1
jmp 0x104a5e4
mov dword [ebp - 0xb40], 5
mov dword [ebp - 0xb48], ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
push edi
call fcn.0105f0f3
mov dword [ebp - 0xb3c], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0105f054
mov dword [ebp - 0xb50], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0104f68e
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0xb48]
push dword [ebp - 0xb40]
call fcn.0105ef87
test eax, eax
je 0x104a5aa
mov eax, dword [ebp - 0xb50]
test ah, 0xfc
jne 0x104a59e
and dword [ebp - 0xb3c], 0x3ff
cmp dword [ebp - 0xb3c], eax
je 0x104a62d
mov dword [ebp - 0xb38], 0xf059
jmp 0x104a731
lea eax, [ebp - 0xb48]
push eax
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
push edi
call fcn.0105eb91
cmp eax, 1
je 0x104a535
lea eax, [ebp - 0xb48]
push eax
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
push edi
call fcn.0105ed2d
cmp eax, 0xffffffff
mov dword [ebp - 0xb44], eax
jne 0x104a535
push ebx
push dword [0x10c1424]
lea eax, [ebp - 0x108]
push eax
call fcn.0105c348
jmp 0x104a6f7
cmp dword [ebp - 0xb3c], 0xffffffff
je 0x104a731
lea eax, [ebp - 0x310]
push eax
push edi
call fcn.0105f21e
test eax, eax
jne 0x104a727
cmp word [0x10bd300], bx
jne 0x104a731
push 0x104
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x310]
push eax
push edi
call fcn.01070fc9
lea eax, [ebp - 0x518]
push eax
call fcn.01060612
test eax, eax
je 0x104a71b
lea eax, [ebp - 0x518]
push eax
call fcn.0105ea1c
test eax, eax
je 0x104a731
mov eax, dword [ebp - 0xb44]
push dword [eax*4 + 0x10999a8]
lea eax, [ebp - 0x108]
push dword [0x10c1424]
push eax
call fcn.0105c348
cmp eax, ebx
mov dword [ebp - 0xb38], eax
jne 0x104a731
push dword [0x10c119c]
lea eax, [ebp - 0x518]
push eax
push dword [0x10c11a8]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0xb48]
push dword [ebp - 0xb40]
push dword [ebp - 0xb44]
call fcn.0105fc22
cmp eax, ebx
mov dword [ebp - 0xb38], eax
jne 0x104a731
push dword [0x10c1424]
lea eax, [ebp - 0x108]
push eax
call fcn.0105d25e
mov dword [ebp - 0xb38], eax
jmp 0x104a731
mov dword [ebp - 0xb38], 0xf0b5
jmp 0x104a731
mov dword [ebp - 0xb38], 0xf0a6
push 0x104
mov edi, 0x10bd600
push edi
push 0xf00f
push ebx
mov byte [0x10bd600], bl
mov byte [0x1106960], bl
call fcn.010312a2
cmp dword [ebp - 0xb38], ebx
je 0x104a7a2
mov edi, 0xfffa
push edi
push esi
push dword [ebp - 0xb38]
push ebx
call fcn.010312a2
test eax, eax
jne 0x104a77f
push edi
push esi
push 0xf053
push ebx
call fcn.010312a2
cmp dword [0x10c119c], ebx
jne 0x104a79a
push 0x11010
push 0x10bd600
push esi
push ebx
call fcn.0107473f
jmp 0x104a7cd
push esi
call fcn.01071aad
jmp 0x104a7cd
push 0xfffa
push esi
push 0xf052
push ebx
call fcn.010312a2
cmp dword [0x10c119c], ebx
jne 0x104a7c8
push 0x11040
push edi
push esi
push ebx
call fcn.0107473f
call fcn.01044de7
push esi
call fcn.01071aad
push dword [0x109abc0]
call fcn.01072b67
call fcn.01070da6
jmp 0x104ad4b
push 0x10c152c
call fcn.01088880
test eax, eax
mov eax, dword [0x10c11dc]
jne 0x104a80b
cmp eax, ebx
jne 0x104a860
mov dword [0x10c11e0], esi
mov dword [0x10c11ec], esi
cmp eax, ebx
jne 0x104a860
cmp dword [0x10bcec4], ebx
jne 0x104a860
push 0x10160b4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [0x10bcebc], ebx
mov dword [0x109ab9c], eax
jne 0x104a860
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x104a860
mov eax, dword [0x109ab9c]
cmp eax, ebx
je 0x104a854
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x109ab9c], ebx
mov dword [ebp - 0xb38], 0xf205
jmp 0x104a8a0
push ebx
push ebx
push 0x101608c
call edi
test eax, eax
je 0x104a873
mov dword [0x10c11d0], esi
mov dword [0x10f6824], ebx
mov dword [0x10f5484], ebx
call fcn.0107b94f
push dword [ebp - 0xb3c]
push 0x10c1180
push ebx
call fcn.01054925
mov dword [ebp - 0xb38], eax
call fcn.01076706
mov eax, dword [0x10f6824]
cmp eax, ebx
je 0x104a8b0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0xb38], ebx
jne 0x104a8c2
mov dword [ebp - 0xb38], 0x42b
cmp dword [ebp - 0xb38], 0x4c7
jne 0x104a8d8
mov dword [ebp - 0xb38], 0xf00d
mov esi, 0x104
push esi
push 0x10bd600
push 0xf011
push ebx
mov byte [0x10bd600], bl
mov byte [0x1106960], bl
mov byte [ebp - 0x20c], bl
call fcn.010312a2
push esi
lea eax, [ebp - 0x20c]
push eax
push 0xf0e3
push ebx
call fcn.010312a2
mov edi, 0xfffa
push edi
mov esi, 0x1106960
push esi
push dword [ebp - 0xb38]
push ebx
call fcn.010312a2
test eax, eax
jne 0x104a9bd
push ebx
push edi
push esi
push ebx
push dword [ebp - 0xb38]
call fcn.01036348
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x104a9ab
push esi
call fcn.01071aad
push esi
push dword [0x10bd32c]
lea eax, [ebp - 0x20c]
push eax
push 3
push 0x10bf23e
push dword [0x10bd330]
push 1
push 0xc00e1115
call fcn.01070b7a
add esp, 0x20
cmp dword [0x10c119c], ebx
jne 0x104a9ab
cmp dword [0x109a6e4], ebx
jne 0x104a99a
push 0x11010
jmp 0x104a99f
push 0x11040
push 0x10bd600
push esi
push ebx
call fcn.0107473f
push edi
push esi
push 0xf009
push ebx
call fcn.010312a2
jmp 0x104aa9e
mov al, byte [0x10bd964]
cmp al, 0x5c
jne 0x104aa16
xor eax, eax
mov cl, byte [eax + 0x10bed24]
mov byte [eax + 0x10f6960], cl
inc eax
cmp cl, bl
jne 0x104a9c8
cmp byte [0x10f6960], 0x5c
jne 0x104aa28
cmp byte [0x10f6961], 0x5c
jne 0x104aa28
mov edi, dword [sym.imp.msvcrt.dll_strstr]
push 0x10094ec
push 0x10f6962
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x104aa28
inc eax
push 0x10094ec
push eax
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x104aa28
mov byte [eax], bl
jmp 0x104aa28
mov byte [0x10f6960], al
mov byte [0x10f6961], 0x3a
mov byte [0x10f6962], bl
cmp dword [ebp - 0xb38], 0xf003
jne 0x104aa60
push esi
call dword [sym.imp.msvcrt.dll__strdup]
mov edi, eax
cmp edi, ebx
pop ecx
je 0x104aa9e
push dword [0x10c1198]
push dword [0x10c1194]
push 0x10f6960
push edi
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x14
jmp 0x104aa90
cmp dword [ebp - 0xb38], 0xf02b
jne 0x104aa9e
push esi
call dword [sym.imp.msvcrt.dll__strdup]
mov edi, eax
cmp edi, ebx
pop ecx
je 0x104aa9e
push dword [0x10c1198]
push 0x10f6960
push edi
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push esi
call fcn.01071aad
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [0x10bd334], ebx
je 0x104ab51
xor ecx, ecx
mov edx, 0x1016078
inc ecx
call fcn.01081c57
push esi
call dword [sym.imp.msvcrt.dll__strdup]
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x104aacf
push 0x1016048
call fcn.01071aad
mov eax, dword [0x10bf7a8]
cmp eax, 2
jl 0x104adb7
cmp eax, 3
jle 0x104ad97
cmp eax, 4
jne 0x104adb7
cmp dword [0x109a030], ebx
jne 0x104ab11
mov eax, dword [0x10bd1e4]
cmp eax, 5
ja 0x104ab0c
jne 0x104ab11
cmp dword [0x10bd1e8], 1
jb 0x104ab11
call fcn.01074695
push esi
call dword [sym.imp.msvcrt.dll__strdup]
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x104abbc
push 0x1016048
call fcn.01071aad
push 0xfffa
push esi
push 0xf009
push ebx
mov byte [0x1106960], bl
call fcn.010312a2
xor ecx, ecx
mov edx, 0x1016038
inc ecx
call fcn.01081c57
cmp dword [0x10bf7a8], 4
jne 0x104aeaf
cmp dword [0x109a030], ebx
je 0x104ae08
cmp byte [0x10bced0], bl
je 0x104addc
push 0x10bced0
push dword [0x10bd32c]
mov edi, 0x10f6960
push 0x1016030
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push 3
push 0x10bf23e
push dword [0x10bd330]
push 1
push 0xc00e111b
call fcn.01070b7a
add esp, 0x30
jmp 0x104ae33
push 0xfffa
push esi
push 0xf015
push ebx
mov byte [0x1106960], bl
call fcn.010312a2
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x104abd8
sub eax, ecx
mov ecx, eax
mov eax, edi
lea edx, [eax + 1]
mov dword [ebp - 0xb50], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x104abee
sub eax, dword [ebp - 0xb50]
lea eax, [eax + ecx + 1]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [ebp - 0xb3c], eax
jne 0x104ac38
push 0x1016008
call fcn.01071aad
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x104ac21
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x104adb7
push edi
push esi
push dword [ebp - 0xb3c]
call dword [sym.imp.msvcrt.dll_sprintf]
mov edx, esi
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x104ac4f
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0xb3c]
call fcn.01071aad
cmp dword [0x10c119c], ebx
jne 0x104ac8e
push 0x11010
push 0x10bd600
push dword [ebp - 0xb3c]
push ebx
call fcn.0107473f
mov edi, eax
jmp 0x104ac91
xor edi, edi
inc edi
push dword [ebp - 0xb3c]
call dword [sym.imp.msvcrt.dll_free]
cmp edi, 2
pop ecx
je 0x104ab2d
push 0x10bd970
push dword [0x10bd5f4]
call fcn.01073be6
cmp dword [0x109ab74], ebx
push 0xfffa
push esi
je 0x104accc
push 0x1015ff0
jmp 0x104acd1
push 0x1015fd8
push 0x10bf684
call fcn.01070fc9
push 0x104
mov edi, 0x1116960
push edi
push 0xf063
push ebx
call fcn.010312a2
push esi
push edi
push 0x100ccc8
mov edi, 0x10f4480
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push edi
call fcn.01071aad
lea eax, [ebp - 0xb4c]
push eax
push ebx
push esi
call fcn.01070db7
test eax, eax
je 0x104ad80
cmp dword [ebp - 0xb4c], ebx
jne 0x104ad69
push dword [0x10c11ec]
push 0x1015f78
call fcn.01071ac0
cmp dword [0x10c11ec], ebx
pop ecx
pop ecx
jne 0x104ad4b
mov dword [ebp - 0xb38], 0x643
mov esi, dword [ebp - 0xb38]
mov edx, 0x1015f6c
xor ecx, ecx
call fcn.01081c57
call fcn.01081ad5
mov eax, esi
jmp 0x104b043
push dword [ebp - 0xb4c]
mov dword [ebp - 0xb40], 1
push 0x1015f08
jmp 0x104ad8b
push dword [ebp - 0xb4c]
push 0x1015ed0
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x104ab2d
push dword [0x109a030]
push dword [0x10bd834]
push 0x10bed24
call fcn.0107e0ba
push 0x10f55e0
call fcn.01077208
cmp edi, ebx
je 0x104ab2d
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x104adc5
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x104ab44
push esi
push dword [0x10bd32c]
lea eax, [ebp - 0x20c]
push eax
push 3
push 0x10bf23e
push dword [0x10bd330]
push 1
push 0xc00e111b
call fcn.01070b7a
add esp, 0x20
jmp 0x104ae33
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [0x10bd32c]
push eax
push 4
push 0x10bf23e
push dword [0x10bd330]
push 1
push 0xc00e1116
call fcn.01070b7a
add esp, 0x24
mov edi, dword [sym.imp.msvcrt.dll__strdup]
push esi
call edi
cmp eax, ebx
pop ecx
mov dword [ebp - 0xb3c], eax
je 0x104aea5
push 0xfffa
push esi
push 0xf016
push ebx
mov byte [0x1106960], bl
call fcn.010312a2
push esi
call edi
mov edi, eax
cmp edi, ebx
pop ecx
je 0x104ae82
push dword [ebp - 0xb3c]
push edi
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
jmp 0x104ae96
mov eax, dword [ebp - 0xb3c]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x104ae8c
push dword [ebp - 0xb3c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x104aeaf
push 0x1016048
call fcn.01071aad
mov eax, dword [0x109ab9c]
cmp eax, ebx
je 0x104aec5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x109ab9c], ebx
push 0x104
mov edi, 0x10bd600
push edi
push 0xf011
push ebx
mov byte [0x10bd600], bl
call fcn.010312a2
push esi
call fcn.01071aad
cmp dword [0x10c119c], ebx
jne 0x104af0b
cmp dword [0x109a6e4], ebx
jne 0x104aefe
push 0x11010
jmp 0x104af03
push 0x11040
push edi
push esi
push ebx
call fcn.0107473f
push dword [ebp - 0xb38]
push 0x1015ea8
call fcn.01071ac0
cmp dword [0x10c11ec], ebx
pop ecx
pop ecx
jne 0x104af3d
mov eax, 0x643
push eax
push 0x1015e58
mov dword [ebp - 0xb38], eax
call fcn.01071ac0
pop ecx
pop ecx
call fcn.01070da6
mov eax, dword [0x109ab9c]
cmp eax, ebx
je 0x104af58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x109ab9c], ebx
mov edx, 0x1015e44
xor ecx, ecx
call fcn.01081c57
cmp dword [ebp - 0xb40], ebx
je 0x104b02c
mov eax, dword [0x10f6824]
cmp eax, ebx
je 0x104af80
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x110695c]
cmp eax, ebx
je 0x104afb7
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x2710
push dword [0x110695c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x104afb7
push 0x1015e0c
call fcn.01071ac0
pop ecx
cmp dword [0x10c11ac], ebx
jne 0x104b02c
push dword [0x10bd830]
push ebx
push dword [0x109a030]
push dword [0x109ab70]
push dword [0x10c11a0]
push 1
call fcn.0107bd1e
test eax, eax
jne 0x104b02c
push 0x104
push edi
push 0xf011
push ebx
mov byte [0x10bd600], bl
mov byte [0x1106960], bl
call fcn.010312a2
push 0xfffa
push esi
push 0xf00a
push ebx
call fcn.010312a2
push esi
call fcn.01071aad
cmp dword [0x10c119c], ebx
jne 0x104b02c
push 0x11010
push edi
push esi
push ebx
call fcn.0107473f
mov edx, 0x1015f6c
xor ecx, ecx
call fcn.01081c57
call fcn.01081ad5
mov eax, dword [ebp - 0xb38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x10