Function at 0x47bb30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e71a8
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 0x47bb7b
cmp di, 0xd
jbe 0x47bcd6
cmp di, 0x20
je 0x47bcd6
push 4
push esi
push str._UNI
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bba2
mov dword [esp + 0x14], ebx
jmp 0x47bcde
push 8
push esi
push str._UNICODE
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bbbf
mov dword [esp + 0x14], ebx
jmp 0x47bcde
push 5
push esi
push str._UNIB
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bbdc
mov dword [esp + 0x14], ebp
jmp 0x47bcde
push 9
push esi
push str._UNICODEB
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bbf9
mov dword [esp + 0x14], ebp
jmp 0x47bcde
push 5
push esi
push str._ANSI
call fcn.004403f0
add esp, 0xc
test al, al
jne 0x47bcd6
push 4
push esi
push str._GBK
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bc32
mov dword [esp + 0x14], 0x3a8
jmp 0x47bcde
push 5
push esi
push str._BIG5
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bc53
mov dword [esp + 0x14], 0x3b6
jmp 0x47bcde
push 5
push esi
push str._UTF8
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bc71
mov dword [esp + 0x14], 0xfde9
jmp 0x47bcde
push 5
push esi
push str._UTF7
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47bc8f
mov dword [esp + 0x14], 0xfde8
jmp 0x47bcde
cmp di, 0x2d
jne 0x47bcbc
mov ax, word [esi + 2]
add esi, 2
call fcn.00445b20
test al, al
je 0x47bcbc
mov eax, esi
push eax
mov dword [esp + 0x68], eax
call fcn.00447090
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jge 0x47bcde
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.0041676d
lea ecx, [esp + 0x68]
push ecx
call fcn.0043f2e0
mov edx, dword [esp + 0x6c]
push 4
push edx
push str.fix
call fcn.004403f0
mov bl, al
add esp, 0x14
test bl, bl
je 0x47bd26
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x64]
add edx, 8
push eax
mov dword [esp + 0x68], edx
call fcn.0043f2e0
add esp, 4
test bl, bl
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
sete al
dec al
push 0x4ebd38
and eax, 2
mov byte [esp + 0x38], al
call ebp
lea esi, [eax + eax + 2]
lea ecx, [esi + 2]
push ecx
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
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.00445f00
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.00449370
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], ebx
push esi
mov byte [esp + 0x70], 3
call fcn.0042063d
add esp, 0x14
push eax
lea ecx, [esp + 0x20]
call fcn.004574e0
cmp esi, ebx
mov byte [esp + 0x5c], 2
je 0x47be02
mov edx, dword [0x51927c]
add esi, 0xfffffff8
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x1c]
push esi
push 0x4f6544
call fcn.00440490
add esp, 8
test al, al
je 0x47be93
mov edi, 1
mov byte [esp + 0x12], 1
mov esi, dword [esp + 0x64]
cmp word [esi], 0x2c
mov dword [esp + 0x3c], 0
jne 0x47bf86
push 2
call fcn.00445f00
add esp, 4
test eax, eax
mov dword [esp + 0x30], eax
je 0x47be4f
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.00449370
mov esi, dword [esp + 0x3c]
push esi
push 0x4f6540
mov dword [esp + 0x44], esi
call fcn.00440490
add esp, 0x14
test al, al
je 0x47becf
mov byte [esp + 0x13], 2
mov dword [esp + 0x3c], 0x4f653c
jmp 0x47bf40
cmp word [esi], 0
je 0x47be1d
push esi
push 0x4efd08
call fcn.00440490
add esp, 8
test al, al
jne 0x47be1d
push esi
push 0x4ef7b4
call fcn.00440490
add esp, 8
test al, al
je 0x47be22
mov byte [esp + 0x12], 2
jmp 0x47be22
push esi
push 0x4f6538
call fcn.00440490
add esp, 8
test al, al
je 0x47bee8
mov byte [esp + 0x13], 3
jmp 0x47bf40
push esi
push 0x4ec53c
call fcn.00440490
add esp, 8
test al, al
je 0x47bf09
mov byte [esp + 0x13], 1
mov dword [esp + 0x3c], 0x4ec420
jmp 0x47bf40
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00449a90
mov ecx, dword [esp + 0x38]
add esp, 8
cmp word [ecx], 0x2b
jne 0x47bf40
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.00449a90
add esp, 8
test esi, esi
mov ebx, dword [esp + 0x20]
je 0x47bf5b
mov ecx, dword [0x51927c]
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 0x47bf8a
push 0x2c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x6c]
add esi, 2
push eax
mov dword [esp + 0x70], esi
call fcn.00449370
mov esi, dword [esp + 0x70]
add esp, 0xc
jmp 0x47bf8a
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.004152c8
mov eax, dword [esp + 0x18]
cmp word [eax], 0
jne 0x47bfb5
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add eax, 0xfffffff8
push eax
jmp 0x47c316
mov al, byte [esp + 0x12]
cmp al, 1
jne 0x47bfef
cmp word [esi], 0x2c
je 0x47bfef
lea ecx, [esp + 0x18]
call fcn.0043f290
lea ecx, [esp + 0x1c]
call fcn.0043f290
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 0x47c340
mov dword [esp + 0x34], 0
test edi, edi
mov byte [esp + 0x5c], 4
je 0x47c063
lea ecx, [esp + 0x64]
push ecx
call fcn.0043f2e0
mov edi, dword [esp + 0x68]
lea edx, [esp + 0x68]
push edx
call fcn.0041676d
mov esi, dword [esp + 0x6c]
add esp, 8
cmp word [esi], 0
je 0x47c039
mov word [esi], 0
cmp word [edi], 0
je 0x47c063
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebp
call fcn.00422a90
test eax, eax
je 0x47c063
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x38]
call fcn.004575a0
mov esi, dword [esp + 0x34]
mov dword [esp + 0x64], esi
mov al, byte [esp + 0x13]
cmp al, 3
mov ebp, esi
jne 0x47c081
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push esi
push eax
call fcn.00444550
jmp 0x47c2f2
test al, al
je 0x47c159
cmp al, 1
mov ebp, 0x4ec544
je 0x47c097
mov ebp, 0x4ef484
lea ecx, [esp + 0x64]
call fcn.00446250
mov ax, word [esi]
test ax, ax
mov byte [esp + 0x5c], 5
mov edi, esi
je 0x47c104
mov ebx, 0xa
cmp ax, 0xd
jne 0x47c0ca
cmp word [esi + 2], bx
jne 0x47c0cf
mov word [esi], 0
add esi, 2
jmp 0x47c0d4
cmp ax, bx
jne 0x47c0f8
mov word [esi], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x47c0e6
push ebp
lea ecx, [esp + 0x68]
call fcn.004462e0
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x17], 0
call fcn.004462e0
lea edi, [esi + 2]
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x47c0b4
cmp word [edi], 0
je 0x47c126
mov al, byte [esp + 0x13]
test al, al
jne 0x47c11c
push ebp
lea ecx, [esp + 0x68]
call fcn.004462e0
push edi
lea ecx, [esp + 0x68]
call fcn.004462e0
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00444550
test esi, esi
je 0x47c2f2
mov edx, dword [0x51927c]
add esi, 0xfffffff8
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47c2f2
test ebx, ebx
jge 0x47c1bf
mov ax, word [esi]
xor edi, edi
test ax, ax
je 0x47c186
cmp ax, 0xa
jne 0x47c16e
inc edi
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x47c167
cmp esi, ebp
jbe 0x47c186
cmp word [esi - 2], 0xa
je 0x47c186
inc edi
push 0x42
call fcn.00445f00
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x64], esi
je 0x47c19f
mov word [esi], 0
push edi
push 0x4edd14
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 0x47c2e0
jne 0x47c249
mov cx, word [esi]
test cx, cx
mov eax, esi
mov edx, esi
je 0x47c21d
cmp cx, 0xa
jne 0x47c1db
mov edx, eax
mov eax, esi
mov cx, word [esi + 2]
add esi, 2
test cx, cx
jne 0x47c1d1
cmp esi, ebp
jbe 0x47c20f
cmp word [esi - 2], 0xa
je 0x47c20f
cmp word [eax], 0xa
jne 0x47c1fb
add eax, 2
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00444550
jmp 0x47c2f2
cmp eax, ebp
jbe 0x47c21d
cmp word [eax - 2], 0xd
jne 0x47c21d
add eax, 0xfffffffe
cmp word [edx], 0xa
jne 0x47c226
add edx, 2
sub eax, edx
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.00457450
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
push edx
mov byte [esp + 0x60], 7
push eax
jmp 0x47c2e0
cmp ebx, 1
jle 0x47c26b
mov edi, edi
mov ax, word [esi]
test ax, ax
je 0x47c267
cmp ax, 0xa
jne 0x47c25f
dec ebx
add esi, 2
cmp ebx, 1
jg 0x47c250
mov dword [esp + 0x64], esi
cmp word [esi], 0
mov ebx, dword [esp + 0x28]
mov ebp, esi
mov edi, ebx
je 0x47c2c2
lea esp, [esp]
test edi, edi
je 0x47c287
dec ebx
js 0x47c2c2
lea edx, [esp + 0x64]
call fcn.00445c10
test edi, edi
je 0x47c298
test ebx, ebx
je 0x47c2be
mov esi, dword [esp + 0x64]
cmp word [esi], 0xd
jne 0x47c2a9
add esi, 2
mov dword [esp + 0x64], esi
cmp word [esi], 0xa
jne 0x47c2b6
add esi, 2
mov dword [esp + 0x64], esi
cmp word [esi], 0
jne 0x47c280
jmp 0x47c2c2
mov esi, dword [esp + 0x64]
sub esi, ebp
sar esi, 1
push esi
push ebp
lea ecx, [esp + 0x6c]
call fcn.00457450
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.00444550
lea ecx, [esp + 0x64]
call fcn.0043f290
mov eax, dword [esp + 0x34]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x47c30e
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff8
push ecx
mov edx, dword [0x51927c]
push 0
push edx
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47c79f
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
jmp 0x47c79f
push 9
call fcn.00445f00
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
mov dword [esp + 0x64], esi
je 0x47c359
mov byte [esi], 0
push 9
call fcn.00445f00
add esp, 4
cmp eax, edi
mov dword [esp + 0x30], eax
je 0x47c36e
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 0x47c39a
lea ebp, [esp + 0x4c]
jmp 0x47c4b6
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.004167bc
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x47c45d
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 0x47c410
cmp byte [esp + 0x45], 0xfe
jne 0x47c449
mov dword [esp + 0x14], 0x4b0
mov edi, 2
jmp 0x47c449
cmp al, 0xfe
jne 0x47c42a
cmp byte [esp + 0x45], 0xff
jne 0x47c449
mov dword [esp + 0x14], 0x4b1
mov edi, 2
jmp 0x47c449
cmp al, 0xef
jne 0x47c449
cmp byte [esp + 0x45], 0xbb
jne 0x47c449
cmp byte [esp + 0x46], 0xbf
jne 0x47c449
mov dword [esp + 0x14], 0xfde9
mov edi, 3
mov eax, edi
cdq
push 0
push edx
push eax
push ebx
call fcn.004403b0
add esp, 0x10
test eax, eax
jge 0x47c4b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004167b7
lea ecx, [esp + 0x30]
call fcn.0043f290
lea ecx, [esp + 0x64]
call fcn.0043f290
lea ecx, [esp + 0x38]
call fcn.004167b7
lea ecx, [esp + 0x18]
call fcn.0043f290
lea ecx, [esp + 0x1c]
call fcn.0043f290
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 0x47c5b0
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.00445f60
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x47c4fd
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 0x47c534
mov ecx, 0x100000
add edi, ecx
mov dword [esp + 0x34], ecx
mov byte [edi + esi], 0
jmp 0x47c4e0
cmp ecx, ebx
jne 0x47c558
cmp eax, ebx
jne 0x47c560
cmp byte [esp + 0x12], 2
jne 0x47c552
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47c560
mov ecx, dword [esp + 0x34]
dec dword [esp + 0x40]
js 0x47c560
add edi, ecx
mov byte [edi + esi], 0
jmp 0x47c4e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], esi
lea esi, [esp + 0x34]
call fcn.00450ba0
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00444550
mov ecx, esi
call fcn.0043f290
lea ecx, [esp + 0x2c]
call fcn.004167b7
lea ecx, [esp + 0x30]
call fcn.0043f290
lea ecx, [esp + 0x64]
call fcn.0043f290
lea ecx, [esp + 0x38]
call fcn.004167b7
jmp 0x47c78d
test al, al
je 0x47c695
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x47c5c5
mov eax, 0x4ec037
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x48]
call fcn.00457470
xor ebx, ebx
mov bl, byte [esp + 0x34]
or ebx, 1
lea ebx, [ebx]
push 2
call fcn.00445f00
add esp, 4
test eax, eax
mov dword [esp + 0x34], eax
je 0x47c5f7
mov word [eax], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x47c60d
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x68]
call fcn.004462e0
mov edx, dword [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
mov byte [esp + 0x23], 0
call fcn.00450790
mov edi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47c63b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47c676
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00450ba0
push eax
lea ecx, [esp + 0x68]
call fcn.004462e0
test edi, edi
je 0x47c676
mov eax, dword [esp + 0x34]
test eax, eax
je 0x47c5e0
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47c5e0
lea ecx, [esp + 0x34]
call fcn.0043f290
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], 0x4b0
call fcn.0043f290
jmp 0x47c74b
test ebx, ebx
jge 0x47c6f9
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.00450790
mov esi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47c6c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47c6d0
test esi, esi
je 0x47c6d0
inc ebx
jmp 0x47c6a0
push 0x20
lea ecx, [esp + 0x68]
mov dword [esp + 0x18], 0x4b0
call fcn.004460b0
mov ecx, dword [esp + 0x64]
push ebx
push 0x4edd14
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x47c74b
jne 0x47c7b6
xor ebx, ebx
mov bl, byte [esp + 0x34]
or ebx, 1
jmp 0x47c710
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.00450790
mov edi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47c743
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47c747
test edi, edi
jne 0x47c710
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x64]
call fcn.00450ba0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push edx
call fcn.00444550
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47c77b
cmp eax, 0xffffffff
je 0x47c77b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.0043f290
lea ecx, [esp + 0x64]
call fcn.0043f290
lea ecx, [esp + 0x18]
call fcn.0043f290
lea ecx, [esp + 0x1c]
call fcn.0043f290
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 0x47c801
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x6c]
push edx
push ebp
call fcn.00450790
mov esi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47c7f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47c7fd
test esi, esi
je 0x47c7fd
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jl 0x47c7c7
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x28], 1
mov byte [esi], 0
jne 0x47c82d
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.00450790
add esp, 0x10
jmp 0x47c74b
lea ecx, [esp + 0x20]
call fcn.00446250
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov edi, edi
test ebx, ebx
je 0x47c84a
dec dword [esp + 0x28]
js 0x47c8b6
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.00450790
mov esi, eax
mov al, byte [esp + 0x22]
add esp, 0x10
cmp al, 2
jne 0x47c881
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x47c8b6
test esi, esi
je 0x47c8b6
mov eax, edi
lea esi, [esp + 0x20]
call fcn.00450ba0
push eax
lea ecx, [esp + 0x68]
call fcn.004462e0
test ebx, ebx
je 0x47c8a6
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x47c8b6
push 0x4ef484
lea ecx, [esp + 0x68]
call fcn.004462e0
jmp 0x47c840
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0x4b0
call fcn.0043f290
jmp 0x47c74b