Function at 0x47e4c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eb5b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov di, word [esi]
cmp di, 9
mov dword [esp + 0x24], ecx
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov ebx, 0x4b0
mov ebp, 0x4b1
jb 0x47e50b
cmp di, 0xd
jbe 0x47e666
cmp di, 0x20
je 0x47e666
push 4
push esi
push str._UNI
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e532
mov dword [esp + 0x14], ebx
jmp 0x47e66e
push 8
push esi
push str._UNICODE
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e54f
mov dword [esp + 0x14], ebx
jmp 0x47e66e
push 5
push esi
push str._UNIB
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e56c
mov dword [esp + 0x14], ebp
jmp 0x47e66e
push 9
push esi
push str._UNICODEB
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e589
mov dword [esp + 0x14], ebp
jmp 0x47e66e
push 5
push esi
push str._ANSI
call fcn.00444970
add esp, 0xc
test al, al
jne 0x47e666
push 4
push esi
push str._GBK
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e5c2
mov dword [esp + 0x14], 0x3a8
jmp 0x47e66e
push 5
push esi
push str._BIG5
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e5e3
mov dword [esp + 0x14], 0x3b6
jmp 0x47e66e
push 5
push esi
push str._UTF8
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e601
mov dword [esp + 0x14], 0xfde9
jmp 0x47e66e
push 5
push esi
push str._UTF7
call fcn.00444970
add esp, 0xc
test al, al
je 0x47e61f
mov dword [esp + 0x14], 0xfde8
jmp 0x47e66e
cmp di, 0x2d
jne 0x47e64c
mov ax, word [esi + 2]
add esi, 2
call fcn.0043af40
test al, al
je 0x47e64c
mov eax, esi
push eax
mov dword [esp + 0x68], eax
call fcn.0044a460
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jge 0x47e66e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
mov dword [esp + 0x14], 0
lea eax, [esp + 0x64]
push eax
call fcn.00417de5
lea ecx, [esp + 0x68]
push ecx
call fcn.00443850
mov edx, dword [esp + 0x6c]
push 4
push edx
push str.fix
call fcn.00444970
mov bl, al
add esp, 0x14
test bl, bl
je 0x47e6b6
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x64]
add edx, 8
push eax
mov dword [esp + 0x68], edx
call fcn.00443850
add esp, 4
test bl, bl
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
sete al
dec al
push 0x4efd50
and eax, 2
mov byte [esp + 0x38], al
call ebp
lea esi, [eax + eax + 2]
lea ecx, [esi + 2]
push ecx
call fcn.00449130
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4efd50
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
xor ebx, ebx
push str.READLINE
mov dword [esp + 0x60], ebx
call ebp
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00449130
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, str.READLINE
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ebx
mov eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
push 0x2c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x70]
push ecx
xor edi, edi
call fcn.0044c770
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], ebx
push esi
mov byte [esp + 0x70], 3
call fcn.00422077
add esp, 0x14
push eax
lea ecx, [esp + 0x20]
call fcn.00456630
cmp esi, ebx
mov byte [esp + 0x5c], 2
je 0x47e792
mov edx, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x1c]
push esi
push 0x4fa9f0
call fcn.00444a10
add esp, 8
test al, al
je 0x47e823
mov edi, 1
mov byte [esp + 0x12], 1
mov esi, dword [esp + 0x64]
cmp word [esi], 0x2c
mov dword [esp + 0x3c], 0
jne 0x47e916
push 2
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x30], eax
je 0x47e7df
mov word [eax], 0
push 0x2c
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x6c]
add esi, 2
push ecx
mov dword [esp + 0x70], esi
call fcn.0044c770
mov esi, dword [esp + 0x3c]
push esi
push 0x4fa9ec
mov dword [esp + 0x44], esi
call fcn.00444a10
add esp, 0x14
test al, al
je 0x47e85f
mov byte [esp + 0x13], 2
mov dword [esp + 0x3c], 0x4fa9e8
jmp 0x47e8d0
cmp word [esi], 0
je 0x47e7ad
push esi
push 0x4f43c4
call fcn.00444a10
add esp, 8
test al, al
jne 0x47e7ad
push esi
push 0x4f3dd4
call fcn.00444a10
add esp, 8
test al, al
je 0x47e7b2
mov byte [esp + 0x12], 2
jmp 0x47e7b2
push esi
push 0x4fa9e4
call fcn.00444a10
add esp, 8
test al, al
je 0x47e878
mov byte [esp + 0x13], 3
jmp 0x47e8d0
push esi
push 0x4f05c4
call fcn.00444a10
add esp, 8
test al, al
je 0x47e899
mov byte [esp + 0x13], 1
mov dword [esp + 0x3c], 0x4f043c
jmp 0x47e8d0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0044ce90
mov ecx, dword [esp + 0x38]
add esp, 8
cmp word [ecx], 0x2b
jne 0x47e8d0
lea edx, [esp + 0x28]
mov ebp, ecx
push edx
lea eax, [esp + 0x34]
add ebp, 2
push eax
mov dword [esp + 0x38], ebp
call fcn.0044ce90
add esp, 8
test esi, esi
mov ebx, dword [esp + 0x20]
je 0x47e8eb
mov ecx, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x64]
cmp word [esi], 0x2c
jne 0x47e91a
push 0x2c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x6c]
add esi, 2
push eax
mov dword [esp + 0x70], esi
call fcn.0044c770
mov esi, dword [esp + 0x70]
add esp, 0xc
jmp 0x47e91a
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.004166b6
mov eax, dword [esp + 0x18]
cmp word [eax], 0
jne 0x47e945
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add eax, 0xfffffff8
push eax
jmp 0x47eca6
mov al, byte [esp + 0x12]
cmp al, 1
jne 0x47e97f
cmp word [esi], 0x2c
je 0x47e97f
lea ecx, [esp + 0x18]
call fcn.00443880
lea ecx, [esp + 0x1c]
call fcn.00443880
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
add esi, 2
test al, 1
mov dword [esp + 0x64], esi
je 0x47ecd0
mov dword [esp + 0x34], 0
test edi, edi
mov byte [esp + 0x5c], 4
je 0x47e9f3
lea ecx, [esp + 0x64]
push ecx
call fcn.00443850
mov edi, dword [esp + 0x68]
lea edx, [esp + 0x68]
push edx
call fcn.00417de5
mov esi, dword [esp + 0x6c]
add esp, 8
cmp word [esi], 0
je 0x47e9c9
mov word [esi], 0
cmp word [edi], 0
je 0x47e9f3
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebp
call fcn.00423eea
test eax, eax
je 0x47e9f3
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x38]
call fcn.004566f0
mov esi, dword [esp + 0x34]
mov dword [esp + 0x64], esi
mov al, byte [esp + 0x13]
cmp al, 3
mov ebp, esi
jne 0x47ea11
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push esi
push eax
call fcn.00448be0
jmp 0x47ec82
test al, al
je 0x47eae9
cmp al, 1
mov ebp, 0x4f05cc
je 0x47ea27
mov ebp, 0x4f3aa4
lea ecx, [esp + 0x64]
call fcn.00449480
mov ax, word [esi]
test ax, ax
mov byte [esp + 0x5c], 5
mov edi, esi
je 0x47ea94
mov ebx, 0xa
cmp ax, 0xd
jne 0x47ea5a
cmp word [esi + 2], bx
jne 0x47ea5f
mov word [esi], 0
add esi, 2
jmp 0x47ea64
cmp ax, bx
jne 0x47ea88
mov word [esi], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x47ea76
push ebp
lea ecx, [esp + 0x68]
call fcn.00449510
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x17], 0
call fcn.00449510
lea edi, [esi + 2]
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x47ea44
cmp word [edi], 0
je 0x47eab6
mov al, byte [esp + 0x13]
test al, al
jne 0x47eaac
push ebp
lea ecx, [esp + 0x68]
call fcn.00449510
push edi
lea ecx, [esp + 0x68]
call fcn.00449510
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00448be0
test esi, esi
je 0x47ec82
mov edx, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47ec82
test ebx, ebx
jge 0x47eb4f
mov ax, word [esi]
xor edi, edi
test ax, ax
je 0x47eb16
cmp ax, 0xa
jne 0x47eafe
inc edi
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x47eaf7
cmp esi, ebp
jbe 0x47eb16
cmp word [esi - 2], 0xa
je 0x47eb16
inc edi
push 0x42
call fcn.00449130
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x64], esi
je 0x47eb2f
mov word [esi], 0
push edi
push 0x4f1f24
push esi
mov byte [esp + 0x68], 6
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x24]
add esp, 0xc
push esi
push eax
jmp 0x47ec70
jne 0x47ebd9
mov cx, word [esi]
test cx, cx
mov eax, esi
mov edx, esi
je 0x47ebad
cmp cx, 0xa
jne 0x47eb6b
mov edx, eax
mov eax, esi
mov cx, word [esi + 2]
add esi, 2
test cx, cx
jne 0x47eb61
cmp esi, ebp
jbe 0x47eb9f
cmp word [esi - 2], 0xa
je 0x47eb9f
cmp word [eax], 0xa
jne 0x47eb8b
add eax, 2
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00448be0
jmp 0x47ec82
cmp eax, ebp
jbe 0x47ebad
cmp word [eax - 2], 0xd
jne 0x47ebad
add eax, 0xfffffffe
cmp word [edx], 0xa
jne 0x47ebb6
add edx, 2
sub eax, edx
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.004565a0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
push edx
mov byte [esp + 0x60], 7
push eax
jmp 0x47ec70
cmp ebx, 1
jle 0x47ebfb
mov edi, edi
mov ax, word [esi]
test ax, ax
je 0x47ebf7
cmp ax, 0xa
jne 0x47ebef
dec ebx
add esi, 2
cmp ebx, 1
jg 0x47ebe0
mov dword [esp + 0x64], esi
cmp word [esi], 0
mov ebx, dword [esp + 0x28]
mov ebp, esi
mov edi, ebx
je 0x47ec52
lea esp, [esp]
test edi, edi
je 0x47ec17
dec ebx
js 0x47ec52
lea edx, [esp + 0x64]
call fcn.00448f70
test edi, edi
je 0x47ec28
test ebx, ebx
je 0x47ec4e
mov esi, dword [esp + 0x64]
cmp word [esi], 0xd
jne 0x47ec39
add esi, 2
mov dword [esp + 0x64], esi
cmp word [esi], 0xa
jne 0x47ec46
add esi, 2
mov dword [esp + 0x64], esi
cmp word [esi], 0
jne 0x47ec10
jmp 0x47ec52
mov esi, dword [esp + 0x64]
sub esi, ebp
sar esi, 1
push esi
push ebp
lea ecx, [esp + 0x6c]
call fcn.004565a0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
push ecx
mov byte [esp + 0x60], 8
push edx
mov ecx, dword [esp + 0x2c]
call fcn.00448be0
lea ecx, [esp + 0x64]
call fcn.00443880
mov eax, dword [esp + 0x34]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x47ec9e
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff8
push ecx
mov edx, dword [0x51d3c8]
push 0
push edx
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47f12f
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
jmp 0x47f12f
push 9
call fcn.00449130
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
mov dword [esp + 0x64], esi
je 0x47ece9
mov byte [esi], 0
push 9
call fcn.00449130
add esp, 4
cmp eax, edi
mov dword [esp + 0x30], eax
je 0x47ecfe
mov byte [eax], 0
push 0xfffffffffffffff6
mov word [esi], di
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], edi
cmp byte [esp + 0x12], 2
mov byte [esp + 0x5c], 0xb
jne 0x47ed2a
lea ebp, [esp + 0x4c]
jmp 0x47ee46
mov ecx, dword [esp + 0x1c]
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push SysReAllocStringLen
lea ebp, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.00417e55
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x47eded
xor eax, eax
push eax
lea edx, [esp + 0x44]
push edx
mov word [esp + 0x4f], ax
mov dword [esp + 0x48], eax
push 3
lea eax, [esp + 0x50]
push eax
push ebx
mov byte [esp + 0x58], 0
mov byte [esp + 0x59], 0
mov byte [esp + 0x5a], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x44]
cmp al, 0xff
jne 0x47eda0
cmp byte [esp + 0x45], 0xfe
jne 0x47edd9
mov dword [esp + 0x14], 0x4b0
mov edi, 2
jmp 0x47edd9
cmp al, 0xfe
jne 0x47edba
cmp byte [esp + 0x45], 0xff
jne 0x47edd9
mov dword [esp + 0x14], 0x4b1
mov edi, 2
jmp 0x47edd9
cmp al, 0xef
jne 0x47edd9
cmp byte [esp + 0x45], 0xbb
jne 0x47edd9
cmp byte [esp + 0x46], 0xbf
jne 0x47edd9
mov dword [esp + 0x14], 0xfde9
mov edi, 3
mov eax, edi
cdq
push 0
push edx
push eax
push ebx
call fcn.00444930
add esp, 0x10
test eax, eax
jge 0x47ee42
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00417e50
lea ecx, [esp + 0x30]
call fcn.00443880
lea ecx, [esp + 0x64]
call fcn.00443880
lea ecx, [esp + 0x38]
call fcn.00417e50
lea ecx, [esp + 0x18]
call fcn.00443880
lea ecx, [esp + 0x1c]
call fcn.00443880
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
mov ebx, dword [esp + 0x20]
push 0
mov dword [esp + 0x44], 0x186a0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [esp + 0x13]
cmp al, 3
jne 0x47ef40
xor ebx, ebx
xor esi, esi
mov ebp, dword [ebp]
mov byte [esp + 0x5c], 0xc
xor edi, edi
lea eax, [edi + 0x100002]
push esi
call fcn.00449190
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x47ee8d
mov byte [edi + esi + 0x100001], 0
push ebx
lea ecx, [esp + 0x38]
push ecx
push 0x100000
lea edx, [edi + esi]
push edx
push ebp
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x100000
jbe 0x47eec4
mov ecx, 0x100000
add edi, ecx
mov dword [esp + 0x34], ecx
mov byte [edi + esi], 0
jmp 0x47ee70
cmp ecx, ebx
jne 0x47eee8
cmp eax, ebx
jne 0x47eef0
cmp byte [esp + 0x12], 2
jne 0x47eee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47eef0
mov ecx, dword [esp + 0x34]
dec dword [esp + 0x40]
js 0x47eef0
add edi, ecx
mov byte [edi + esi], 0
jmp 0x47ee70
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], esi
lea esi, [esp + 0x34]
call fcn.00451b90
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00448be0
mov ecx, esi
call fcn.00443880
lea ecx, [esp + 0x2c]
call fcn.00417e50
lea ecx, [esp + 0x30]
call fcn.00443880
lea ecx, [esp + 0x64]
call fcn.00443880
lea ecx, [esp + 0x38]
call fcn.00417e50
jmp 0x47f11d
test al, al
je 0x47f025
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x47ef55
mov eax, 0x4f004f
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x48]
call fcn.004565c0
xor ebx, ebx
mov bl, byte [esp + 0x34]
or ebx, 1
lea ebx, [ebx]
push 2
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x34], eax
je 0x47ef87
mov word [eax], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x47ef9d
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x68]
call fcn.00449510
mov edx, dword [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
mov byte [esp + 0x23], 0
call fcn.00451780
mov edi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47efcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47f006
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00451b90
push eax
lea ecx, [esp + 0x68]
call fcn.00449510
test edi, edi
je 0x47f006
mov eax, dword [esp + 0x34]
test eax, eax
je 0x47ef70
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47ef70
lea ecx, [esp + 0x34]
call fcn.00443880
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], 0x4b0
call fcn.00443880
jmp 0x47f0db
test ebx, ebx
jge 0x47f089
mov edi, dword [esp + 0x34]
xor ebx, ebx
nop
mov edx, dword [esp + 0x14]
push edi
push edx
lea eax, [esp + 0x6c]
push eax
push ebp
call fcn.00451780
mov esi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47f059
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47f060
test esi, esi
je 0x47f060
inc ebx
jmp 0x47f030
push 0x20
lea ecx, [esp + 0x68]
mov dword [esp + 0x18], 0x4b0
call fcn.004492e0
mov ecx, dword [esp + 0x64]
push ebx
push 0x4f1f24
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x47f0db
jne 0x47f146
xor ebx, ebx
mov bl, byte [esp + 0x34]
or ebx, 1
jmp 0x47f0a0
mov edx, dword [esp + 0x14]
mov eax, esi
mov esi, dword [esp + 0x30]
push ebx
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.00451780
mov edi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47f0d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47f0d7
test edi, edi
jne 0x47f0a0
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x64]
call fcn.00451b90
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push edx
call fcn.00448be0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47f10b
cmp eax, 0xffffffff
je 0x47f10b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.00443880
lea ecx, [esp + 0x64]
call fcn.00443880
lea ecx, [esp + 0x18]
call fcn.00443880
lea ecx, [esp + 0x1c]
call fcn.00443880
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8
mov eax, dword [esp + 0x20]
mov ebx, 1
cmp eax, ebx
jle 0x47f191
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x6c]
push edx
push ebp
call fcn.00451780
mov esi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47f180
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47f18d
test esi, esi
je 0x47f18d
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jl 0x47f157
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x28], 1
mov byte [esi], 0
jne 0x47f1bd
xor eax, eax
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x64]
or eax, 1
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push ebp
call fcn.00451780
add esp, 0x10
jmp 0x47f0db
lea ecx, [esp + 0x20]
call fcn.00449480
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov edi, edi
test ebx, ebx
je 0x47f1da
dec dword [esp + 0x28]
js 0x47f246
mov edx, dword [esp + 0x20]
xor eax, eax
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x20]
mov word [edx], 0
or eax, 1
push eax
push edi
push ecx
push ebp
call fcn.00451780
mov esi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47f211
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47f246
test esi, esi
je 0x47f246
mov eax, edi
lea esi, [esp + 0x20]
call fcn.00451b90
push eax
lea ecx, [esp + 0x68]
call fcn.00449510
test ebx, ebx
je 0x47f236
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x47f246
push 0x4f3aa4
lea ecx, [esp + 0x68]
call fcn.00449510
jmp 0x47f1d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0x4b0
call fcn.00443880
jmp 0x47f0db