Function at 0x4d5f4e
Capabilities:
Read file on windows

Disassembly:
push 0x3c4
mov eax, 0x528ae0
call fcn.00452846
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38c], ebx
call fcn.004d76bc
push ecx
mov dword [ebp - 0x36c], esp
lea eax, [ebp - 0x385]
mov dword [ebp - 0x36c], esp
push eax
lea ecx, [ebp - 0x3d0]
mov byte [ebp - 4], 1
mov dword [ebp - 0x394], ebx
mov dword [ebp - 0x374], ebx
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x3b0], ebx
mov dword [ebp - 0x398], ebx
call fcn.0047e093
mov dword [ebp - 0x39c], ebx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x3ac], ebx
mov dword [ebp - 0x3a8], ebx
mov dword [ebp - 0x3a4], ebx
push ebx
push ebx
sub esp, 0x10
mov dword [ebp - 0x36c], esp
mov ecx, esp
push 0x5680b8
mov byte [ebp - 4], 3
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x416440
mov byte [ebp - 4], 4
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 3
call fcn.004d1d18
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4d6038
lea eax, [ebp + 8]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d6101
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4d606e
and edi, 0xffff
or edi, 0x80070000
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.004df515
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 5
jae 0x4d608b
lea ecx, [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4d6093
mov eax, dword [eax]
push ecx
push eax
push edi
push 0x416454
push esi
call fcn.004d3d0f
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00444c55
mov ecx, esi
call fcn.004d42e6
lea ecx, [ebp - 0x3ac]
call fcn.0044e8ac
lea ecx, [ebp - 0x3d0]
mov byte [ebp - 4], 1
call fcn.004d7700
lea ecx, [ebp - 0x3bc]
call fcn.004d75cd
push dword [ebp - 0x3bc]
call fcn.0044f67d
pop ecx
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00444c55
xor eax, eax
inc eax
jmp 0x4d7437
push ebx
lea eax, [ebp - 0x384]
push eax
push 4
push esi
push edi
mov dword [ebp - 0x384], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d612f
push 0x414a6c
push esi
call fcn.004d3d0f
pop ecx
pop ecx
jmp 0x4d6fd5
cmp dword [esi + 0x340], ebx
je 0x4d6158
cmp dword [esi], 6
ja 0x4d6158
push 0x416478
push esi
call fcn.004d3d0f
pop ecx
pop ecx
mov ecx, esi
call fcn.004d42e6
xor esi, esi
inc esi
jmp 0x4d73f9
push ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x4164c4
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414aa4
mov byte [ebp - 4], 6
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.004d181a
sub esp, 0x10
mov dword [ebp - 0x36c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ab0
mov byte [ebp - 4], 8
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 7
call fcn.004d1d18
mov dword [ebp - 0x380], eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xa
call fcn.0044e8ac
push dword [esi]
push 0x4164e4
push esi
call fcn.004d3d0f
add esp, 0xc
cmp dword [esi], 3
jae 0x4d624f
push 3
push 0x416500
push esi
call fcn.004d3d0f
add esp, 0xc
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 3
call fcn.004d21b8
jmp 0x4d6fd5
cmp dword [esi], 0x12
jbe 0x4d625d
push 0x12
push 0x416580
jmp 0x4d6232
lea ecx, [ebp - 0x3bc]
call fcn.004d75cd
push ebx
lea eax, [ebp - 0x384]
push eax
push 4
lea eax, [ebp - 0x398]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d6293
push 0x414a6c
push esi
call fcn.004d3d0f
pop ecx
pop ecx
jmp 0x4d623b
mov ecx, dword [ebp - 0x398]
lea eax, [ecx + 1]
cmp eax, ecx
jb 0x4d623b
lea eax, [ecx + 2]
push eax
call fcn.0044f692
pop ecx
mov ecx, eax
mov dword [ebp - 0x394], ecx
test ecx, ecx
jne 0x4d62bd
push 0x415674
jmp 0x4d6289
mov eax, dword [ebp - 0x398]
add eax, 2
push eax
push ebx
push ecx
call fcn.004530e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 0x398]
push dword [ebp - 0x394]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6284
push dword [ebp - 0x394]
mov ecx, esi
push 0x4165fc
call fcn.004d4fd7
push 0x11c
lea eax, [ebp - 0x364]
push ebx
push eax
call fcn.004530e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x384]
push eax
push 0x11c
lea eax, [ebp - 0x364]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6284
cmp dword [esi], 4
jb 0x4d6373
lea eax, [ebp - 0x368]
push eax
push edi
mov ecx, esi
call fcn.004d4e4d
test eax, eax
js 0x4d6284
cmp dword [ebp - 0x368], 0
je 0x4d6366
push 0x416608
jmp 0x4d636b
push 0x41661c
push esi
call fcn.004d3d0f
pop ecx
pop ecx
cmp dword [esi], 0xe
jb 0x4d6406
lea eax, [ebp - 0x374]
push eax
push 0x416630
push edi
mov ecx, esi
call fcn.004d4f10
test eax, eax
js 0x4d623b
push dword [ebp - 0x374]
mov ecx, esi
push 0x416630
call fcn.004d4fd7
lea eax, [ebp - 0x378]
push eax
push 0x416658
push edi
mov ecx, esi
call fcn.004d4f10
test eax, eax
js 0x4d623b
push dword [ebp - 0x378]
mov ecx, esi
push 0x416658
call fcn.004d4fd7
lea eax, [ebp - 0x37c]
push eax
push 0x416680
push edi
mov ecx, esi
call fcn.004d4f10
test eax, eax
js 0x4d623b
push dword [ebp - 0x37c]
mov ecx, esi
push 0x416680
call fcn.004d4fd7
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 3
call fcn.004d21b8
push ebx
push ebx
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x3ac]
call fcn.004d1620
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x41669c
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414aa4
mov byte [ebp - 4], 0xb
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 3
call fcn.004d1892
push ebx
push ebx
sub esp, 0x10
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x36c], esp
mov ecx, esp
push eax
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ab0
mov byte [ebp - 4], 0xc
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 3
call fcn.004d1d18
mov dword [ebp - 0x378], eax
push ebx
push ebx
sub esp, 0x10
mov dword [ebp - 0x36c], esp
mov ecx, esp
push 0x5680b8
mov byte [ebp - 4], 0xd
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ac0
mov byte [ebp - 4], 0xe
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 0xd
call fcn.004d1d18
mov dword [ebp - 0x368], eax
mov byte [ebp - 4], 0xf
push 0x4166d4
push esi
call fcn.004d3d0f
pop ecx
pop ecx
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0xd
call fcn.004d21b8
xor eax, eax
inc eax
cmp dword [esi], 0xd
mov dword [ebp - 0x374], eax
jb 0x4d659a
push ebx
lea eax, [ebp - 0x384]
push eax
push 4
lea eax, [ebp - 0x374]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d6594
push 0x414a6c
push esi
call fcn.004d3d0f
pop ecx
pop ecx
lea ecx, [ebp - 0x378]
jmp 0x4d6241
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x37c], ebx
test eax, eax
je 0x4d65c5
push edi
mov ecx, esi
call fcn.004d43ac
test eax, eax
js 0x4d657c
mov eax, dword [ebp - 0x37c]
inc eax
mov dword [ebp - 0x37c], eax
cmp eax, dword [ebp - 0x374]
jb 0x4d65a4
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 3
call fcn.004d21b8
cmp dword [esi], 0xa
jb 0x4d686a
push ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x4166f4
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414aa4
mov byte [ebp - 4], 0x10
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.004d181a
sub esp, 0x10
mov dword [ebp - 0x36c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x11
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ab0
mov byte [ebp - 4], 0x12
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 0x11
call fcn.004d1d18
mov dword [ebp - 0x37c], eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x14
call fcn.0044e8ac
push ebx
lea eax, [ebp - 0x384]
push eax
push 4
lea eax, [ebp - 0x390]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d66cf
push 0x414a6c
push esi
call fcn.004d3d0f
pop ecx
pop ecx
lea ecx, [ebp - 0x37c]
jmp 0x4d6241
cmp dword [ebp - 0x390], 0
jbe 0x4d685b
push dword [ebp - 0x390]
call fcn.0044f692
pop ecx
mov dword [ebp - 0x39c], eax
test eax, eax
jne 0x4d66f9
push 0x415674
jmp 0x4d66bc
push dword [ebp - 0x390]
push ebx
push eax
call fcn.004530e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 0x390]
push dword [ebp - 0x39c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d66b7
cmp dword [esi + 0x334], ebx
je 0x4d685b
push ebx
push ebx
sub esp, 0x10
mov dword [ebp - 0x36c], esp
mov ecx, esp
push 0x5680b8
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ac0
mov byte [ebp - 4], 0x15
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 0x14
call fcn.004d1d18
mov dword [ebp - 0x368], eax
push 0x416718
push esi
mov byte [ebp - 4], 0x16
call fcn.004d3d0f
pop ecx
pop ecx
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0x14
call fcn.004d21b8
mov eax, dword [ebp - 0x390]
mov ecx, dword [ebp - 0x39c]
mov dword [ebp - 0x378], eax
lea eax, [ebp - 0x370]
push eax
push 0x7fffffff
push ecx
mov dword [ebp - 0x374], ecx
mov dword [ebp - 0x370], ebx
call fcn.004d1302
mov ecx, dword [ebp - 0x378]
test ecx, ecx
je 0x4d685b
mov edx, dword [ebp - 0x370]
cmp edx, ecx
ja 0x4d684e
push dword [ebp - 0x374]
push 0x41674c
push esi
call fcn.004d3d0f
mov edx, dword [ebp - 0x370]
mov ecx, dword [ebp - 0x378]
or eax, 0xffffffff
sub eax, edx
add esp, 0xc
add ecx, eax
mov dword [ebp - 0x378], ecx
je 0x4d6848
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
push ecx
inc edx
add eax, edx
push 0x7fffffff
push eax
mov dword [ebp - 0x374], eax
call fcn.004d1302
mov ecx, dword [ebp - 0x378]
mov edx, dword [ebp - 0x370]
test ecx, ecx
jne 0x4d67e8
jmp 0x4d685b
push 0x416724
push esi
call fcn.004d3d0f
pop ecx
pop ecx
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 3
call fcn.004d21b8
push ebx
lea eax, [ebp - 0x384]
push eax
push 4
lea eax, [ebp - 0x38c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d611d
cmp dword [ebp - 0x38c], 0
mov dword [ebp - 0x374], ebx
jbe 0x4d6942
push 0x468
call fcn.0044f603
pop ecx
mov dword [ebp - 0x36c], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x4d68c6
push esi
mov ecx, eax
call fcn.004d3551
mov dword [ebp - 0x370], eax
jmp 0x4d68ce
mov eax, ebx
mov dword [ebp - 0x370], ebx
mov byte [ebp - 4], 3
test eax, eax
je 0x4d6a35
lea ecx, [eax + 0x43c]
call fcn.004d322c
mov ecx, dword [ebp - 0x370]
lea ecx, [ecx + 0x44c]
call fcn.004d322c
mov ecx, dword [ebp - 0x370]
lea ecx, [ecx + 0x45c]
call fcn.004d322c
mov ecx, dword [ebp - 0x370]
mov eax, dword [ecx]
push edi
call dword [eax]
push dword [ebp - 0x370]
lea ecx, [ebp - 0x3bc]
push dword [ebp - 0x3bc]
call fcn.004d7595
mov eax, dword [ebp - 0x374]
inc eax
mov dword [ebp - 0x374], eax
cmp eax, dword [ebp - 0x38c]
jb 0x4d689d
push ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x416754
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414aa4
mov byte [ebp - 4], 0x18
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.004d181a
sub esp, 0x10
mov dword [ebp - 0x36c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x19
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ab0
mov byte [ebp - 4], 0x1a
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 0x19
call fcn.004d1d18
mov dword [ebp - 0x368], eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x1c
call fcn.0044e8ac
xor eax, eax
cmp dword [esi + 0x344], ebx
lea ecx, [ebp - 0x3c0]
setne al
push eax
call fcn.004d34b0
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 3
call fcn.004d21b8
cmp dword [esi], 6
ja 0x4d6a3f
push 0x416788
jmp 0x4d6122
push 0x414f74
jmp 0x4d6122
cmp dword [esi], 0xb
jb 0x4d6afe
mov dword [ebp - 0x37c], ebx
push ebx
lea eax, [ebp - 0x384]
push eax
push 4
lea eax, [ebp - 0x37c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6c6c
cmp dword [ebp - 0x384], 0
je 0x4d6a4e
cmp dword [ebp - 0x384], 4
jne 0x4d6c6c
mov eax, dword [ebp - 0x37c]
add eax, 4
push eax
call fcn.0044f692
pop ecx
mov dword [ebp - 0x3b0], eax
test eax, eax
jne 0x4d6aa8
push 0x415ce0
jmp 0x4d6122
push ebx
lea ecx, [ebp - 0x384]
push ecx
push dword [ebp - 0x37c]
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6c62
mov eax, dword [ebp - 0x37c]
cmp dword [ebp - 0x384], eax
jne 0x4d6c62
mov ecx, dword [ebp - 0x3b0]
mov dword [ecx], eax
push dword [ebp - 0x37c]
lea eax, [ecx + 4]
push eax
lea ecx, [esi + 8]
call fcn.004d0d0e
mov eax, dword [esi + 0x34c]
mov dword [esi + 0x30], eax
push ebx
lea eax, [ebp - 0x384]
push eax
push 4
lea eax, [ebp - 0x38c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d611d
push dword [ebp - 0x3a8]
lea eax, [ebp - 0x36c]
push dword [ebp - 0x3ac]
lea ecx, [ebp - 0x3ac]
push eax
call fcn.004d1620
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x416824
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414aa4
mov byte [ebp - 4], 0x1d
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 3
call fcn.004d1892
push ebx
push ebx
sub esp, 0x10
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x36c], esp
mov ecx, esp
push eax
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ab0
mov byte [ebp - 4], 0x1e
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 3
call fcn.004d1d18
mov dword [ebp - 0x374], eax
push dword [ebp - 0x38c]
mov byte [ebp - 4], 0x1f
push 0x416848
push esi
call fcn.004d3d0f
mov eax, ebx
add esp, 0xc
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x38c], eax
jbe 0x4d6dd1
mov eax, 0x1003
mov word [ebp - 0x36c], ax
push 0x7c
call fcn.0044f603
pop ecx
mov dword [ebp - 0x370], eax
mov byte [ebp - 4], 0x20
test eax, eax
je 0x4d6cd9
push dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x378]
inc ecx
push ecx
mov ecx, eax
call fcn.0051a74e
mov dword [ebp - 0x370], eax
jmp 0x4d6ce1
push 0x415cf0
jmp 0x4d6122
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4d6c84
and edi, 0xffff
or edi, 0x80070000
push 0x415cf0
push esi
call fcn.004d3d0f
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.004530e0
add esp, 0x14
push ebx
push 0x200
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4d6fd5
lea eax, [ebp - 0x210]
push eax
jmp 0x4d6122
mov eax, ebx
mov dword [ebp - 0x370], ebx
mov byte [ebp - 4], 0x1f
test eax, eax
je 0x4d6e39
cmp dword [esi], 8
jb 0x4d6d08
push 1
mov ecx, eax
call fcn.0051a9cb
mov ecx, eax
call fcn.0050d198
mov eax, dword [ebp - 0x370]
mov ecx, eax
call fcn.0051a9cb
lea ecx, [esi + 0x288]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x370]
call fcn.0051a9cb
mov ecx, dword [ebp - 0x370]
mov byte [eax + 0xc], bl
mov al, byte [esi + 0x368]
mov byte [ebp - 0x385], al
call fcn.0051a9cb
mov cl, byte [ebp - 0x385]
push dword [ebp - 0x370]
mov byte [eax + 0xd], cl
mov eax, dword [ebp - 0x378]
inc eax
push eax
push edi
mov ecx, esi
mov dword [ebp - 0x378], eax
call fcn.004d4825
test eax, eax
js 0x4d6e46
mov ecx, dword [ebp - 0x370]
lea eax, [ebp - 0x37e]
push eax
call fcn.0051a902
mov ecx, 0x3000
cmp word [eax], cx
ja 0x4d6e0d
push dword [ebp - 0x370]
mov ecx, dword [ebp - 0x378]
push ecx
push edi
mov ecx, esi
call fcn.004d4a08
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.0051bb61
mov ecx, dword [ebp - 0x370]
mov dword [eax], ecx
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x368], eax
cmp eax, dword [ebp - 0x38c]
jb 0x4d6c2b
lea ecx, [ebp - 0x374]
mov byte [ebp - 4], 3
call fcn.004d21b8
mov eax, dword [esi + 0x35c]
mov dword [ebp - 0x368], eax
cmp eax, dword [ebp - 0x38c]
jbe 0x4d6e51
push 0x4168f4
push esi
call fcn.004d3d0f
pop ecx
pop ecx
mov ecx, esi
call fcn.004d42e6
jmp 0x4d6fd5
mov ecx, dword [ebp - 0x370]
lea eax, [ebp - 0x37e]
push eax
call fcn.0051a902
movzx eax, word [eax]
push eax
mov eax, 0x3000
push eax
push 0x416868
push esi
call fcn.004d3d0f
add esp, 0x10
jmp 0x4d6e46
push 0x415674
push esi
call fcn.004d3d0f
pop ecx
pop ecx
lea ecx, [ebp - 0x374]
jmp 0x4d6241
cmp dword [esi + 0x340], ebx
je 0x4d6f9f
test eax, eax
je 0x4d6f9f
xor ecx, ecx
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], cx
dec eax
mov dword [ebp - 0x36c], eax
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x3d0]
mov byte [ebp - 4], 0x21
call fcn.0051bb61
lea ecx, [ebp - 0x22c]
push ecx
push dword [esi + 0x354]
movzx ecx, byte [esi + 0x348]
push dword [esi + 0x350]
push ecx
push dword [esi + 0x358]
mov ecx, dword [eax]
push dword [esi + 0x360]
push dword [ebp - 0x368]
call fcn.0051a9cb
mov ecx, eax
call fcn.0050d452
test eax, eax
jns 0x4d6ef8
mov ecx, esi
call fcn.004d42e6
push ebx
push 1
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00444c55
jmp 0x4d6fd5
lea eax, [esi + 0x288]
test eax, eax
lea eax, [esi + 0x298]
jne 0x4d6f0a
mov eax, ebx
lea ecx, [ebp - 0x22c]
push ecx
push eax
call fcn.0044e3bb
mov eax, dword [esi + 0x35c]
dec eax
mov dword [ebp - 0x36c], eax
lea eax, [esi + 0x288]
test eax, eax
je 0x4d6f3c
lea eax, [esi + 0x298]
mov dword [ebp - 0x368], eax
jmp 0x4d6f42
mov dword [ebp - 0x368], ebx
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.0051bb61
push dword [esi + 0x360]
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [eax]
call fcn.0051a9cb
mov ecx, eax
call fcn.0050d94c
push eax
push dword [ebp - 0x368]
mov byte [ebp - 4], 0x22
call fcn.0044e3bb
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00444c55
push ebx
push 1
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00444c55
cmp dword [esi], 0xf
jb 0x4d6fac
push edi
mov ecx, esi
call fcn.004d517a
cmp dword [esi], 0x10
jb 0x4d6fb9
push edi
mov ecx, esi
call fcn.004d5345
cmp dword [esi], 0x12
jb 0x4d6fce
push edi
mov ecx, esi
call fcn.004d5829
push edi
mov ecx, esi
call fcn.004d5829
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x3c8]
test edi, edi
je 0x4d703d
mov eax, dword [ebp - 0x3cc]
mov eax, dword [eax]
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x36c], eax
test eax, eax
je 0x4d7019
mov ecx, eax
call fcn.0051a7db
push dword [ebp - 0x36c]
call fcn.0044f67d
mov edi, dword [ebp - 0x3c8]
pop ecx
lea ecx, [ebp - 0x374]
call fcn.004c8f25
mov ecx, dword [ebp - 0x368]
inc ecx
mov dword [ebp - 0x368], ecx
cmp ecx, edi
jae 0x4d703d
mov eax, dword [ebp - 0x374]
jmp 0x4d6ff3
lea ecx, [ebp - 0x3c0]
call fcn.004d768f
lea ecx, [ebp - 0x3bc]
call fcn.004d75cd
mov eax, dword [ebp - 0x394]
test eax, eax
je 0x4d7064
push eax
call fcn.0044f6a7
pop ecx
mov eax, dword [ebp - 0x39c]
test eax, eax
je 0x4d7075
push eax
call fcn.0044f6a7
pop ecx
cmp dword [esi], 0xb
jb 0x4d7326
mov al, byte [esi + 0x33d]
mov byte [esi + 0xe1], al
mov al, byte [esi + 0x368]
lea edi, [esi + 8]
mov byte [edi + 0xda], al
mov byte [edi + 0xe0], al
cmp byte [esi + 0x330], 0
je 0x4d70c4
lea eax, [esi + 0x288]
test eax, eax
lea eax, [esi + 0x298]
jne 0x4d70ba
mov eax, ebx
push eax
mov ecx, edi
call fcn.004e47b8
jmp 0x4d70cb
mov ecx, edi
call fcn.004e5257
cmp dword [esi + 0x338], ebx
je 0x4d7326
push dword [ebp - 0x3a8]
lea eax, [ebp - 0x36c]
push dword [ebp - 0x3ac]
lea ecx, [ebp - 0x3ac]
push eax
call fcn.004d1620
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x416918
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414aa4
mov byte [ebp - 4], 0x23
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 3
call fcn.004d1892
push ebx
push ebx
sub esp, 0x10
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x36c], esp
mov ecx, esp
push eax
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x414ab0
mov byte [ebp - 4], 0x24
mov word [ecx], ax
call fcn.00444888
lea ecx, [esi + 0x364]
mov byte [ebp - 4], 3
call fcn.004d1d18
mov dword [ebp - 0x36c], eax
lea eax, [esi + 0x288]
mov byte [ebp - 4], 0x25
test eax, eax
je 0x4d71c2
lea eax, [esi + 0x298]
mov dword [ebp - 0x368], eax
jmp 0x4d71c8
mov dword [ebp - 0x368], ebx
lea eax, [ebp - 0x248]
push eax
mov ecx, edi
call fcn.004d22c6
push eax
push 0x416940
push dword [ebp - 0x368]
mov byte [ebp - 4], 0x26
call fcn.00448863
push eax
call fcn.0044e3bb
push eax
call fcn.0044a875
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x25
call fcn.00444c55
cmp byte [esi + 0x33c], 0
je 0x4d7317
lea eax, [esi + 0x288]
test eax, eax
lea eax, [esi + 0x298]
jne 0x4d7229
mov eax, ebx
push 0x416964
push eax
call fcn.00448863
lea eax, [esi + 0x288]
test eax, eax
lea eax, [esi + 0x298]
jne 0x4d7246
mov eax, ebx
push 0x416980
push dword [ebp - 0x38c]
push 0x427780
push eax
call fcn.00448863
mov ecx, eax
call fcn.0044d4cd
push eax
call fcn.00448863
lea eax, [esi + 0x288]
test eax, eax
je 0x4d7281
lea eax, [esi + 0x298]
mov dword [ebp - 0x368], eax
jmp 0x4d7287
mov dword [ebp - 0x368], ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [esi + 0x130]
call fcn.00444ead
push 0x40278c
push eax
push dword [ebp - 0x368]
mov byte [ebp - 4], 0x27
call fcn.0044e3bb
push eax
call fcn.00448863
push ebx
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x25
call fcn.00444c55
lea eax, [esi + 0x288]
test eax, eax
je 0x4d72de
lea eax, [esi + 0x298]
mov dword [ebp - 0x368], eax
jmp 0x4d72e4
mov dword [ebp - 0x368], ebx
lea eax, [ebp - 0x248]
push eax
mov ecx, edi
call fcn.0050249a
push eax
push dword [ebp - 0x368]
mov byte [ebp - 4], 0x28
call fcn.0044e3bb
push eax
call fcn.0044a875
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00444c55
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 3
call fcn.004d21b8
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x416440
mov word [ecx], ax
call fcn.00444888
lea edi, [esi + 0x364]
mov ecx, edi
call fcn.004d1df7
push 1
lea eax, [ebp - 0x248]
push eax
mov ecx, edi
call fcn.004d1f33
lea edi, [esi + 0x37c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x29
call fcn.00444a20
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00444c55
cmp dword [esi + 0x38c], 0
mov dword [ebp - 0x36c], ebx
jbe 0x4d73eb
cmp dword [edi + 0x14], 8
jb 0x4d73a1
mov eax, dword [edi]
jmp 0x4d73a3
mov eax, edi
movzx eax, word [eax + ebx*2]
push eax
call fcn.004535af
pop ecx
test eax, eax
jne 0x4d73e0
cmp dword [edi + 0x14], 8
jb 0x4d73bc
mov eax, dword [edi]
jmp 0x4d73be
mov eax, edi
movzx eax, word [eax + ebx*2]
push eax
call fcn.00453645
pop ecx
test eax, eax
jne 0x4d73e0
cmp dword [edi + 0x14], 8
jb 0x4d73d7
mov eax, dword [edi]
jmp 0x4d73d9
mov eax, edi
push 0x3f
pop ecx
mov word [eax + ebx*2], cx
inc ebx
cmp ebx, dword [esi + 0x38c]
jb 0x4d7397
xor ebx, ebx
push dword [ebp - 0x3b0]
call fcn.0044f6a7
pop ecx
mov esi, ebx
lea ecx, [ebp - 0x3ac]
call fcn.0044e8ac
lea ecx, [ebp - 0x3d0]
mov byte [ebp - 4], 1
call fcn.004d7700
lea ecx, [ebp - 0x3bc]
call fcn.004d75cd
push dword [ebp - 0x3bc]
call fcn.0044f67d
pop ecx
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00444c55
mov eax, esi
call fcn.004528d8
ret 0x1c