Function at 0x1003f6a
Capabilities:
Get file size
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x18dc
call fcn.01005330
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
or eax, 0xffffffff
xor edi, edi
inc edi
push ebx
mov dword [ebp - 0x1854], ebx
mov dword [ebp - 0x187c], ebx
mov dword [ebp - 0x1850], ebx
mov dword [ebp - 0x1860], ebx
mov dword [ebp - 0x1894], ebx
mov dword [ebp - 0x185c], ebx
mov dword [ebp - 0x1858], ebx
mov dword [ebp - 0x1874], ebx
mov dword [ebp - 0x1868], ebx
mov dword [ebp - 0x186c], ebx
mov dword [ebp - 0x18a4], ebx
mov dword [ebp - 0x18bc], ebx
mov dword [ebp - 0x18c8], ebx
mov dword [ebp - 0x18b4], ebx
mov dword [ebp - 0x1864], edi
mov dword [ebp - 0x18ac], ebx
mov dword [ebp - 0x18c0], ebx
mov dword [ebp - 0x18d0], ebx
mov dword [ebp - 0x18a8], ebx
mov dword [ebp - 0x18b0], ebx
mov dword [ebp - 0x18a0], ebx
mov dword [ebp - 0x1888], eax
mov dword [ebp - 0x188c], eax
mov dword [ebp - 0x1878], ebx
mov dword [ebp - 0x1898], ebx
mov dword [ebp - 0x1880], eax
mov dword [ebp - 0x1890], eax
mov dword [ebp - 0x1884], ebx
mov dword [ebp - 0x18c4], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ecx, 0x3e8
mov edx, ecx
lea eax, [ebp - 0x1464]
mov byte [eax], bl
inc eax
dec edx
jne 0x100405d
lea eax, [ebp - 0x184c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1004069
mov ecx, 0x21a
lea eax, [ebp - 0x41c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x100407a
mov edx, 0x1fc
mov ecx, edx
lea eax, [ebp - 0x200]
mov byte [eax], bl
inc eax
dec ecx
jne 0x100408d
mov ecx, edx
lea eax, [ebp - 0xa60]
mov byte [eax], bl
inc eax
dec ecx
jne 0x100409b
mov ecx, edx
lea eax, [ebp - 0xc5c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10040a9
mov ecx, edx
lea eax, [ebp - 0xe58]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10040b7
mov edi, 0x224
mov ecx, edi
lea eax, [ebp - 0x107c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10040ca
mov ecx, 0x448
lea eax, [ebp - 0x864]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10040db
lea eax, [ebp - 0xa60]
push eax
lea eax, [ebp - 0x1854]
push eax
lea eax, [ebp - 0x18c0]
push eax
lea eax, [ebp - 0xe58]
push eax
lea eax, [ebp - 0xc5c]
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x18ac]
push eax
lea eax, [ebp - 0x1858]
push eax
lea eax, [ebp - 0x185c]
push eax
lea eax, [ebp - 0x18d0]
push eax
lea eax, [ebp - 0x1894]
push eax
lea eax, [ebp - 0x1860]
push eax
lea eax, [ebp - 0x1850]
push eax
lea eax, [ebp - 0x18a8]
push eax
push esi
push dword [ebp + 8]
call fcn.0100197e
cmp eax, 1
jne 0x10041b2
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1850]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1860]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1894]
push eax
call fcn.010061a3
call fcn.0100642a
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01005311
leave
ret
xor esi, esi
inc esi
cmp dword [ebp - 0x18a8], esi
jne 0x10041c4
call fcn.01001684
jmp 0x1004154
push ebx
lea eax, [ebp - 0xc5c]
push eax
call fcn.01005bd2
test eax, eax
je 0x10041db
mov dword [ebp - 0x1880], esi
push ebx
lea eax, [ebp - 0xe58]
push eax
call fcn.01005bd2
test eax, eax
je 0x10041f2
mov dword [ebp - 0x1890], esi
cmp dword [ebp - 0x18c0], esi
jne 0x1004200
mov dword [ebp - 0x1878], esi
cmp dword [ebp - 0x18d0], esi
jne 0x100420e
mov dword [ebp - 0x1898], esi
push ebx
push dword [ebp - 0x185c]
call fcn.01005bd2
test eax, eax
je 0x100422a
mov dword [ebp - 0x1870], 2
jmp 0x1004271
push ebx
lea eax, [ebp - 0x200]
push eax
call fcn.01005bd2
test eax, eax
je 0x100431d
cmp word [ebp - 0x200], 0x5c
mov dword [ebp - 0x1870], 3
jne 0x1004271
cmp word [ebp - 0x1fe], 0x5c
jne 0x1004271
push edi
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.01006510
push dword [ebp - 0x1850]
call fcn.010093f9
test eax, eax
mov eax, dword [ebp - 0x1850]
je 0x1004289
add eax, 4
push eax
call fcn.0100986b
push ebx
push dword [ebp - 0x1850]
mov dword [ebp - 0x189c], eax
call fcn.01005bd2
test eax, eax
je 0x1004378
cmp dword [ebp - 0x189c], ebx
jne 0x1004378
push dword [ebp - 0x18ac]
push dword [ebp - 0x1894]
call fcn.01005eeb
shr eax, 1
push eax
push dword [ebp - 0x1894]
push dword [ebp - 0x1860]
call fcn.01005eeb
shr eax, 1
push eax
push dword [ebp - 0x1860]
push dword [ebp - 0x1850]
call fcn.01009c5f
test eax, eax
jne 0x1004328
call fcn.010059a3
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x1850]
push esi
call fcn.01002831
mov ebx, esi
jmp 0x1004154
mov dword [ebp - 0x1870], esi
jmp 0x1004271
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c3
je 0x1004353
cmp eax, 0x50010001
je 0x100434b
cmp eax, 0xa0010001
je 0x1004353
mov dword [ebp - 0x1864], esi
jmp 0x100436c
mov dword [ebp - 0x1864], ebx
jmp 0x100436c
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10004
add eax, 0x40
push eax
mov dword [ebp - 0x1864], ebx
call fcn.0100773a
lea eax, [ebp - 0x1894]
push eax
call fcn.010061a3
cmp dword [ebp - 0x189c], esi
jne 0x10043a9
push ebx
push dword [ebp - 0x1860]
call fcn.01005bd2
test eax, eax
je 0x10043a9
push 0x25c
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
mov eax, dword [ebp - 0x1870]
dec eax
je 0x1004e5b
dec eax
je 0x1004c93
dec eax
jne 0x1004fa5
mov ecx, 0x21a
lea eax, [ebp - 0x41c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10043cf
mov esi, 0x10d
push esi
push 0x10013e4
lea eax, [ebp - 0x41c]
push eax
call fcn.01006510
cmp dword [ebp - 0x1878], ebx
je 0x1004405
mov eax, 0x98967f
mov dword [ebp - 0x1888], eax
mov dword [ebp - 0x188c], eax
push ebx
lea eax, [ebp - 0x200]
push eax
call fcn.01005bd2
test eax, eax
jne 0x1004426
push ebx
push 0x13a7
call fcn.01002c79
jmp 0x1004e8f
cmp dword [ebp - 0x1880], 0xffffffff
je 0x100445a
cmp dword [ebp - 0x1878], ebx
jne 0x100445a
lea eax, [ebp - 0x188c]
push eax
lea eax, [ebp - 0x1888]
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.01003cd4
cmp eax, 1
je 0x1004e8f
cmp dword [ebp - 0x1890], 0xffffffff
je 0x100448e
cmp dword [ebp - 0x1878], ebx
jne 0x100448e
lea eax, [ebp - 0x188c]
push eax
lea eax, [ebp - 0x1888]
push eax
lea eax, [ebp - 0xe58]
push eax
call fcn.01003cd4
cmp eax, 1
je 0x1004e8f
push ebx
lea eax, [ebp - 0xa60]
push eax
call fcn.01005bd2
test eax, eax
jbe 0x10044ef
push ebx
lea eax, [ebp - 0xa60]
push eax
call fcn.01005bd2
mov edi, eax
push ebx
lea eax, [ebp - 0x41c]
push eax
call fcn.01005bd2
add edi, eax
lea eax, [ebp - 0xa60]
cmp edi, 0x10
jb 0x10044d3
push eax
push 0x139c
jmp 0x100441c
push esi
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.01006553
push esi
push ebx
lea eax, [ebp - 0x41c]
push eax
call fcn.01006553
push 0x112
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x107c]
push eax
call fcn.01006510
mov esi, 0x10013e0
lea eax, [ebp - 0x107c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x1004533
lea eax, [ebp - 0x200]
push eax
push 0x13a6
jmp 0x100441c
push ebx
push dword [ebp - 0x1850]
call fcn.01005bd2
test eax, eax
je 0x1004653
cmp dword [ebp - 0x189c], ebx
jne 0x1004653
lea eax, [ebp - 0x200]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x10045f1
push 1
push 0x24
push esi
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call fcn.010093f9
test eax, eax
push 0x224
lea eax, [ebp - 0x864]
jne 0x10045e2
push 0x100133c
push eax
call fcn.01006510
push 0x224
push dword [ebp - 0x1850]
lea eax, [ebp - 0x864]
push eax
call fcn.01006553
push 0x224
push 0x100134c
lea eax, [ebp - 0x864]
push eax
call fcn.01006553
push 0x224
push edi
lea eax, [ebp - 0x864]
push eax
call fcn.01006553
jmp 0x10045e9
push edi
push eax
call fcn.01006510
push 0x224
push esi
jmp 0x1004645
lea eax, [ebp - 0x200]
push eax
call fcn.010093f9
test eax, eax
jne 0x1004653
mov esi, 0x224
push esi
push 0x100133c
lea eax, [ebp - 0x864]
push eax
call fcn.01006510
push esi
push dword [ebp - 0x1850]
lea eax, [ebp - 0x864]
push eax
call fcn.01006553
push esi
push 0x100134c
lea eax, [ebp - 0x864]
push eax
call fcn.01006553
push esi
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.01006553
jmp 0x100466b
push 0x224
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.01006510
lea eax, [ebp - 0x864]
push 0x1001254
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 0x1870], eax
cmp eax, ebx
je 0x1004522
push ebx
push 0x80
push 3
push ebx
xor edi, edi
inc edi
push edi
push 0x20000
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18cc], eax
cmp eax, 0xffffffff
jne 0x100471e
push 0x10001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1850]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1860]
push eax
call fcn.010061a3
mov ebx, edi
jmp 0x100419c
push ebx
push dword [ebp - 0x18cc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10046b7
lea eax, [esi + esi + 0x14]
push eax
call fcn.01005e42
mov dword [ebp - 0x1868], eax
cmp eax, ebx
jne 0x1004750
push 0x20001
jmp 0x10046bc
mov edx, dword [ebp - 0x1888]
cmp edx, ebx
mov ecx, dword [ebp - 0x188c]
mov dword [ebp - 0x18d8], edx
mov dword [ebp - 0x18d4], ecx
jl 0x1004770
cmp ecx, ebx
jge 0x1004776
mov dword [ebp - 0x18a0], edi
cmp dword [ebp - 0x1880], edi
jne 0x10047a4
cmp dword [ebp - 0x18a0], edi
jne 0x10047a4
push 0x227
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
jmp 0x10046ca
push dword [ebp - 0x1870]
cmp esi, ebx
je 0x1004855
lea edi, [esi + 1]
mov esi, dword [sym.imp.msvcrt.dll_fgetws]
push edi
push eax
jmp 0x1004843
push dword [ebp - 0x1870]
lea eax, [ebp - 0x18b4]
push dword [ebp - 0x18a0]
push eax
lea eax, [ebp - 0x18bc]
push eax
lea eax, [ebp - 0x18c4]
push eax
lea eax, [ebp - 0x1884]
push eax
push dword [ebp - 0x1890]
lea eax, [ebp - 0x41c]
push dword [ebp - 0x1880]
push dword [ebp - 0x1878]
push dword [ebp - 0x1854]
push eax
lea eax, [ebp - 0x188c]
push eax
lea eax, [ebp - 0x1888]
push eax
push dword [ebp - 0x1868]
call fcn.010028ac
mov dword [ebp - 0x18a4], eax
cmp eax, ebx
jne 0x10048eb
push dword [ebp - 0x1870]
inc dword [ebp - 0x1884]
push edi
push dword [ebp - 0x1868]
call esi
add esp, 0xc
test eax, eax
jne 0x10047c2
jmp 0x10048eb
mov esi, dword [sym.imp.msvcrt.dll_fgetws]
push 9
push eax
jmp 0x10048de
push dword [ebp - 0x1870]
lea eax, [ebp - 0x18b4]
push dword [ebp - 0x18a0]
push eax
lea eax, [ebp - 0x18bc]
push eax
lea eax, [ebp - 0x18c4]
push eax
lea eax, [ebp - 0x1884]
push eax
push dword [ebp - 0x1890]
lea eax, [ebp - 0x41c]
push dword [ebp - 0x1880]
push dword [ebp - 0x1878]
push dword [ebp - 0x1854]
push eax
lea eax, [ebp - 0x188c]
push eax
lea eax, [ebp - 0x1888]
push eax
push dword [ebp - 0x1868]
call fcn.010028ac
mov dword [ebp - 0x18a4], eax
cmp eax, ebx
jne 0x10048eb
push dword [ebp - 0x1870]
inc dword [ebp - 0x1884]
push 9
push dword [ebp - 0x1868]
call esi
add esp, 0xc
test eax, eax
jne 0x1004860
push dword [ebp - 0x1870]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push dword [ebp - 0x18cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x18a4]
cmp esi, ebx
jne 0x1004b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e7
jne 0x100493b
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1868]
jmp 0x1004f8b
cmp dword [ebp - 0x1878], ebx
je 0x10049d9
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10012a0
add eax, 0x20
push eax
call fcn.01006596
push ebx
push ebx
call fcn.01002c79
cmp dword [ebp - 0x1868], ebx
je 0x1004975
lea eax, [ebp - 0x1868]
push eax
call fcn.010061a3
cmp dword [ebp - 0x185c], ebx
je 0x1004989
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
cmp dword [ebp - 0x1858], ebx
je 0x10049b1
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
cmp dword [ebp - 0x1858], ebx
je 0x10049b1
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1850]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1860]
jmp 0x1004196
cmp dword [ebp - 0x1854], ebx
je 0x1004a58
push dword [ebp - 0x1854]
call fcn.01005eeb
mov ecx, dword [ebp - 0x1854]
cmp eax, ebx
je 0x10049fc
mov byte [ecx], bl
inc ecx
dec eax
jne 0x10049f6
push dword [ebp - 0x18d4]
push dword [ebp - 0x18d8]
push 0x10013cc
push dword [ebp - 0x1854]
call fcn.01005eeb
shr eax, 1
push eax
push dword [ebp - 0x1854]
call fcn.0100284d
add esp, 0x14
cmp eax, ebx
jge 0x1004aca
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010059a3
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100773a
jmp 0x100491f
push 0x3f8
call fcn.01005e42
mov dword [ebp - 0x1854], eax
cmp eax, ebx
jne 0x1004ab3
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1868]
push eax
call fcn.010061a3
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
jmp 0x1004ebe
push dword [ebp - 0x18d4]
push dword [ebp - 0x18d8]
push 0x10013cc
push eax
jmp 0x1004a13
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x1890], ebx
jne 0x1004ae2
push dword [ebp - 0x1854]
push 0x1394
jmp 0x1004af5
cmp dword [ebp - 0x1880], ebx
jne 0x1004afa
push dword [ebp - 0x1854]
push 0x139a
call fcn.01002c79
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1868]
push eax
call fcn.010061a3
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
jmp 0x10049c2
push 0x80c
call fcn.01005e42
mov dword [ebp - 0x186c], eax
cmp eax, ebx
je 0x1004a40
push ebx
push esi
call fcn.01005bd2
cmp eax, 0x400
jbe 0x1004c2d
push 0x401
push esi
push dword [ebp - 0x186c]
call fcn.01006510
push 0x221
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
push 0x25a
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01006596
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x186c]
add eax, 0x20
push eax
call fcn.01006596
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10013c4
add eax, 0x20
push eax
call fcn.01006596
push dword [ebp - 0x1850]
call fcn.010093f9
test eax, eax
mov eax, dword [ebp - 0x1850]
je 0x1004bec
add eax, 4
push dword [ebp - 0x1898]
push eax
push 1
push dword [ebp - 0x186c]
push dword [ebp - 0x1858]
call fcn.01002f01
cmp eax, 1
jne 0x1004c4c
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1868]
push eax
call fcn.010061a3
jmp 0x1004f85
push dword [ebp - 0x186c]
call fcn.01005eeb
shr eax, 1
push eax
push esi
push dword [ebp - 0x186c]
call fcn.01006510
jmp 0x1004b94
lea eax, [ebp - 0x186c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1850]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1860]
jmp 0x1004f9c
mov edi, 0x1fc
push edi
call fcn.01005e42
mov dword [ebp - 0x1874], eax
cmp eax, ebx
jne 0x1004d1b
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1874]
push eax
call fcn.010061a3
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1850]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1860]
push eax
call fcn.010061a3
mov ebx, esi
jmp 0x100419c
lea eax, [ebp - 0x1464]
push eax
lea eax, [ebp - 0x187c]
push eax
lea eax, [ebp - 0x184c]
push eax
push dword [ebp - 0x185c]
call fcn.010016b1
cmp eax, esi
jne 0x1004d8b
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1874]
push eax
call fcn.010061a3
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
lea eax, [ebp - 0x187c]
jmp 0x1004cf6
cmp dword [ebp - 0x187c], ebx
jne 0x1004dac
push 0x21a
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
lea eax, [ebp - 0x18b0]
push eax
lea eax, [ebp - 0x18c8]
push eax
push dword [ebp - 0x1850]
lea eax, [ebp - 0x1874]
push edi
push eax
lea eax, [ebp - 0x1464]
push eax
push dword [ebp - 0x187c]
lea eax, [ebp - 0x184c]
push eax
call fcn.010031a9
mov dword [ebp - 0x18b8], eax
cmp eax, 0x63
je 0x1004d3f
lea eax, [ebp - 0x18b0]
push eax
push dword [ebp - 0x18c8]
lea eax, [ebp - 0x1874]
push eax
lea eax, [ebp - 0x18b8]
push eax
call fcn.01003aa9
cmp eax, esi
je 0x1004d3f
push dword [ebp - 0x1850]
call fcn.010093f9
test eax, eax
mov eax, dword [ebp - 0x1850]
je 0x1004e30
add eax, 4
push dword [ebp - 0x1898]
push eax
push dword [ebp - 0x18b8]
push dword [ebp - 0x1874]
push dword [ebp - 0x1858]
call fcn.01002f01
cmp eax, esi
jne 0x1004fa5
jmp 0x1004d3f
push dword [ebp - 0x1854]
call fcn.010015f5
push 0x80c
mov esi, eax
call fcn.01005e42
mov dword [ebp - 0x186c], eax
cmp eax, ebx
jne 0x1004ee4
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1850]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1860]
push eax
call fcn.010061a3
xor ebx, ebx
inc ebx
jmp 0x100419c
push ebx
push dword [ebp - 0x1854]
call fcn.01005bd2
cmp eax, 0x400
jbe 0x1004f28
push 0x401
push dword [ebp - 0x1854]
push dword [ebp - 0x186c]
call fcn.01006510
push 0x222
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
jmp 0x1004f3e
push 0x406
push dword [ebp - 0x1854]
push dword [ebp - 0x186c]
call fcn.01006510
push dword [ebp - 0x1850]
call fcn.010093f9
test eax, eax
mov eax, dword [ebp - 0x1850]
je 0x1004f56
add eax, 4
push dword [ebp - 0x1898]
push eax
push esi
push dword [ebp - 0x186c]
push dword [ebp - 0x1858]
call fcn.01002f01
cmp eax, 1
jne 0x1004f96
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x186c]
push eax
call fcn.010061a3
jmp 0x1004ea0
lea eax, [ebp - 0x186c]
push eax
call fcn.010061a3
xor esi, esi
inc esi
cmp dword [ebp - 0x189c], esi
je 0x1004fbd
push ebx
push dword [ebp - 0x1850]
call fcn.01005bd2
test eax, eax
jne 0x1004fde
lea eax, [ebp - 0x18dc]
push eax
push 0x1388
push 2
push 0x10012a4
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0x259
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01006596
push dword [ebp - 0x1850]
push dword [ebp - 0x1864]
call fcn.01002831
lea eax, [ebp - 0x1874]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1868]
push eax
call fcn.010061a3
lea eax, [ebp - 0x185c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1858]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1854]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1850]
push eax
call fcn.010061a3
lea eax, [ebp - 0x1860]
push eax
call fcn.010061a3
call fcn.0100642a
push ebx
call dword [sym.imp.msvcrt.dll_exit]
int3