Function at 0x10034e63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x1c], esi
push edi
mov edi, edx
mov dword [esp + 0x2c], edi
cmp esi, 0xfffffffe
jne 0x1003502e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
or ebx, 0xffffffff
xor edi, edi
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x10034ee4
call fcn.100290c0
test eax, eax
je 0x10034ede
cmp eax, ebx
jne 0x10034f4d
mov dword [esp + 0x2c], edi
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10034f60
mov eax, 0x101049f8
jmp 0x10034f63
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x10034ebd
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10034f1b
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10034ebd
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10034f39
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x10034f13
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul ecx, dword [esp + 0x38], 0x364
add ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x10034ec1
add eax, 0x14
mov dword [eax], edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x10034f9b
call fcn.100290c0
test eax, eax
je 0x10034f95
cmp eax, ebx
je 0x1003500e
jmp 0x10035004
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x1003500e
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10034fd2
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x1003500e
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10034ff0
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x10034fca
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul edi, dword [esp + 0x38], 0x364
add edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x10035020
mov edi, 0x101049f4
jmp 0x10035023
add edi, 0x10
mov dword [edi], 9
jmp 0x10035d91
test esi, esi
js 0x10035be9
cmp esi, dword [0x10105540]
jae 0x10035be9
mov eax, esi
shr ecx, 6
and eax, 0x3f
mov dword [esp + 0x28], ecx
imul edx, eax, 0x38
xor eax, eax
inc eax
mov ecx, dword [ecx*4 + 0x10105340]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edx
mov bl, byte [ecx + edx + 0x28]
test al, bl
jne 0x100351ea
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
or ebx, 0xffffffff
xor edi, edi
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x100350cd
call fcn.100290c0
test eax, eax
je 0x100350c7
cmp eax, ebx
jne 0x10035136
mov dword [esp + 0x2c], edi
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10035149
mov eax, 0x101049f8
jmp 0x1003514c
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100350a6
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10035104
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100350a6
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10035122
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x100350fc
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul ecx, dword [esp + 0x38], 0x364
add ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x100350aa
add eax, 0x14
mov dword [eax], edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x10035182
call fcn.100290c0
test eax, eax
jne 0x10035cf2
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x10035d71
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
je 0x10035d25
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100351d2
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x10035d2d
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
jmp 0x10035d66
mov eax, dword [ebp + 8]
cmp eax, 0x7fffffff
jbe 0x10035348
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
or ebx, 0xffffffff
xor edi, edi
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x100353f5
call fcn.100290c0
test eax, eax
je 0x100353ef
cmp eax, ebx
jne 0x1003528f
mov dword [esp + 0x2c], edi
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003529f
mov eax, 0x101049f8
jmp 0x100352a2
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10035233
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x1003527b
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x10035255
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul ecx, dword [esp + 0x38], 0x364
add ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x10035237
add eax, 0x14
mov dword [eax], edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x1003542f
call fcn.100290c0
test eax, eax
je 0x10035429
cmp eax, ebx
je 0x10035328
jmp 0x1003531e
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10035328
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x1003530a
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x100352e4
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul edi, dword [esp + 0x38], 0x364
add edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x1003533a
mov edi, 0x101049f4
jmp 0x1003533d
add edi, 0x10
mov dword [edi], 0x16
jmp 0x10035d8c
test eax, eax
je 0x10035be2
test bl, 2
jne 0x10035be2
test edi, edi
je 0x100351f8
mov ebx, dword [ecx + edx + 0x18]
mov dl, byte [ecx + edx + 0x29]
mov byte [esp + 0x12], dl
mov dword [esp + 0x24], ebx
xor ebx, ebx
movsx edx, dl
mov edi, ebx
sub edx, 1
je 0x1003557c
sub edx, 1
jne 0x1003556b
test al, 1
je 0x1003556b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, 0xffffffff
je 0x1003561f
call fcn.100290c0
test eax, eax
je 0x10035619
cmp eax, 0xffffffff
jne 0x100354a8
mov dword [esp + 0x2c], ebx
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x100354bb
mov eax, 0x101049f8
jmp 0x100354be
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x10035233
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
je 0x1003524d
jmp 0x1003525d
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x10035328
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
je 0x100352dc
jmp 0x100352ec
xor edx, edx
call fcn.1003b000
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100353ce
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10035494
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x1003546b
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul ecx, dword [esp + 0x38], 0x364
add ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x100353d2
add eax, 0x14
mov dword [eax], ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, 0xffffffff
je 0x1003565a
call fcn.100290c0
test eax, eax
je 0x10035654
cmp eax, 0xffffffff
je 0x10035546
jmp 0x1003553c
xor edx, edx
call fcn.1003b000
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10035546
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10035528
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x10035502
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul ebx, dword [esp + 0x38], 0x364
add ebx, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
jne 0x10035558
mov ebx, 0x101049f4
jmp 0x1003555b
add ebx, 0x10
mov dword [ebx], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
jmp 0x1003596c
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jmp 0x10035834
test al, 1
jne 0x10035392
mov ecx, eax
push 4
pop eax
shr ecx, 1
mov dword [esp + 0x18], eax
cmp ecx, eax
jb 0x10035599
mov eax, ecx
mov dword [esp + 0x18], ecx
push eax
call sym.ucrtbase.dll__malloc_base
pop ecx
push ebx
mov edi, eax
call sym.ucrtbase.dll__free_base
pop ecx
push ebx
call sym.ucrtbase.dll__free_base
mov dword [esp + 0x18], edi
pop ecx
test edi, edi
jne 0x100357ee
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, 0xffffffff
je 0x10035695
call fcn.100290c0
test eax, eax
je 0x1003568f
cmp eax, 0xffffffff
jne 0x10035706
mov dword [esp + 0x2c], ebx
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10035719
mov eax, 0x101049f4
jmp 0x1003571c
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x100353ce
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
je 0x10035463
jmp 0x10035476
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x10035546
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
je 0x100354fa
jmp 0x1003550a
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x100355f8
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x100356d4
xor edx, edx
call fcn.1003b000
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100355f8
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100356f2
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x100356c9
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul ecx, dword [esp + 0x38], 0x364
add ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x100355fc
add eax, 0x10
mov dword [eax], 0xc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, 0xffffffff
je 0x1003575a
call fcn.100290c0
test eax, eax
je 0x10035754
cmp eax, 0xffffffff
je 0x100357ce
jmp 0x100357c4
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x100357ce
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x28], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10035792
xor edx, edx
call fcn.1003b000
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100357ce
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100357b0
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x20]
jmp 0x1003578a
mov ecx, dword [esp + 0x20]
call fcn.1003e545
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x24]
pop ecx
imul ebx, dword [esp + 0x38], 0x364
add ebx, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
jne 0x100357e0
mov ebx, 0x101049f8
jmp 0x100357e3
add ebx, 0x14
mov dword [ebx], 8
jmp 0x1003596c
push ebx
lea ecx, [esp + 0x44]
call fcn.1006a040
lea eax, [esp + 0x40]
xor edx, edx
push eax
push ebx
push ebx
inc edx
mov ecx, esi
call fcn.100751c2
add esp, 0xc
lea ecx, [esp + 0x40]
mov esi, eax
mov ebx, edx
call fcn.1006a0b0
mov eax, dword [esp + 0x28]
mov edx, edi
mov ecx, dword [eax*4 + 0x10105340]
mov eax, dword [esp + 0x1c]
mov dword [ecx + eax + 0x20], esi
mov dword [ecx + eax + 0x24], ebx
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov esi, ebx
mov dword [esp + 0x38], edx
test byte [eax + ecx + 0x28], 0x48
mov eax, dword [esp + 0x18]
je 0x10035901
mov edx, dword [esp + 0x1c]
mov dl, byte [edx + ecx + 0x2a]
mov byte [esp + 0x13], dl
cmp dl, 0xa
mov edx, dword [esp + 0x14]
je 0x10035901
test eax, eax
je 0x10035901
mov al, byte [esp + 0x13]
xor esi, esi
mov byte [edx], al
inc esi
mov eax, dword [esp + 0x18]
inc edx
mov dword [esp + 0x14], edx
dec eax
cmp byte [esp + 0x12], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov byte [edx + ecx + 0x2a], 0xa
je 0x10035901
mov dl, byte [edx + ecx + 0x2b]
mov byte [esp + 0x13], dl
cmp dl, 0xa
mov edx, dword [esp + 0x14]
je 0x10035901
test eax, eax
je 0x10035901
mov al, byte [esp + 0x13]
mov byte [edx], al
inc edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
dec eax
cmp byte [esp + 0x12], 1
mov edx, dword [esp + 0x1c]
push 2
pop esi
mov dword [esp + 0x18], eax
mov byte [edx + ecx + 0x2b], 0xa
jne 0x10035901
mov dl, byte [edx + ecx + 0x2c]
mov byte [esp + 0x13], dl
cmp dl, 0xa
mov edx, dword [esp + 0x14]
je 0x10035901
test eax, eax
je 0x10035901
mov al, byte [esp + 0x13]
mov byte [edx], al
inc edx
mov eax, dword [esp + 0x1c]
dec dword [esp + 0x18]
push 3
mov dword [esp + 0x18], edx
pop esi
mov byte [eax + ecx + 0x2c], 0xa
push dword [esp + 0x20]
call sym.ucrtbase.dll__isatty
pop ecx
test eax, eax
je 0x10035989
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax*4 + 0x10105340]
cmp byte [ecx + eax + 0x28], 0
jge 0x10035989
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
test eax, eax
je 0x10035989
cmp byte [esp + 0x12], 2
jne 0x1003598d
push ebx
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
shr eax, 1
push eax
push ebx
push dword [esp + 0x34]
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_ReadConsoleW]
test eax, eax
jne 0x1003597d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.10042889
or esi, 0xffffffff
push edi
call sym.ucrtbase.dll__free_base
pop ecx
mov eax, esi
jmp 0x10035d93
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
lea esi, [esi + eax*2]
jmp 0x100359bb
mov byte [esp + 0x34], bl
push ebx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x20]
push dword [esp + 0x34]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x10035a16
mov ecx, dword [ebp + 8]
cmp dword [esp + 0x30], ecx
ja 0x10035a16
add esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax*4 + 0x10105340]
cmp byte [edx + eax + 0x28], 0
jge 0x1003596f
cmp byte [esp + 0x12], 2
je 0x100359f0
shr ecx, 1
mov edx, ebx
push ecx
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push esi
call fcn.10037175
add esp, 0xc
jmp 0x10035a0f
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
shr esi, 1
cmp byte [esp + 0x34], 0
push esi
je 0x10035a09
call fcn.100d2862
jmp 0x10035a0e
call fcn.100d26a9
pop ecx
mov esi, eax
jmp 0x1003596f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x10035bd2
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, 0xffffffff
je 0x10035a80
call fcn.100290c0
test eax, eax
je 0x10035a7a
cmp eax, 0xffffffff
jne 0x10035aea
mov dword [esp + 0x38], ebx
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x10035afd
mov eax, 0x101049f4
jmp 0x10035b00
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x10035a59
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x34], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10035ab8
xor edx, edx
call fcn.1003b000
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10035a59
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10035ad6
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x2c]
jmp 0x10035ab0
mov ecx, dword [esp + 0x2c]
call fcn.1003e545
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x30]
pop ecx
imul ecx, dword [esp + 0x38], 0x364
add ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x10035a5d
add eax, 0x10
mov dword [eax], 9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, 0xffffffff
je 0x10035b3e
call fcn.100290c0
test eax, eax
je 0x10035b38
cmp eax, 0xffffffff
je 0x10035bb2
jmp 0x10035ba8
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x10035bb2
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x34], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10035b76
xor edx, edx
call fcn.1003b000
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10035bb2
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10035b94
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x2c]
jmp 0x10035b6e
mov ecx, dword [esp + 0x2c]
call fcn.1003e545
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x30]
pop ecx
imul ebx, dword [esp + 0x38], 0x364
add ebx, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
jne 0x10035bc4
mov ebx, 0x101049f8
jmp 0x10035bc7
add ebx, 0x14
mov dword [ebx], 5
jmp 0x1003596c
cmp eax, 0x6d
jne 0x10035965
mov esi, ebx
jmp 0x1003596f
xor eax, eax
jmp 0x10035d93
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
or ebx, 0xffffffff
xor edi, edi
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x10035c47
call fcn.100290c0
test eax, eax
je 0x10035c41
cmp eax, ebx
jne 0x10035cb0
mov dword [esp + 0x38], edi
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x10035cc3
mov eax, 0x101049f8
jmp 0x10035cc6
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x10035c20
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x34], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10035c7e
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10035c20
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10035c9c
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x2c]
jmp 0x10035c76
mov ecx, dword [esp + 0x2c]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x30]
pop ecx
imul ecx, dword [esp + 0x38], 0x364
add ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x10035c24
add eax, 0x14
mov dword [eax], edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [esp + 0x38], eax
cmp ecx, ebx
je 0x10035cfe
call fcn.100290c0
test eax, eax
je 0x10035cf8
cmp eax, ebx
je 0x10035d71
jmp 0x10035d67
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x10035d71
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x34], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x10035d35
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10035d71
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x10035d53
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x2c]
jmp 0x10035d2d
mov ecx, dword [esp + 0x2c]
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x30]
pop ecx
imul edi, dword [esp + 0x38], 0x364
add edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x10035d83
mov edi, 0x101049f4
jmp 0x10035d86
add edi, 0x10
mov dword [edi], 9
call sym.ucrtbase.dll__invalid_parameter_noinfo
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret