Function at 0x40eeb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov al, byte [0x7edf4f8]
sub esp, 0x19c
test al, al
push ebx
push ebp
push esi
push edi
jne 0x40f140
mov eax, dword [0x7edf5f8]
test eax, eax
jne 0x40f140
mov dword [esp + 0x24], 0x2807
mov dword [esp + 0x28], 0xe67
mov dword [esp + 0x2c], 0x313
mov dword [esp + 0x30], 0x3c831
mov dword [esp + 0x34], 0x18493
mov dword [esp + 0x38], 0xda223
mov dword [esp + 0x3c], 0x13671
mov dword [esp + 0x40], 0xb498c
mov dword [esp + 0x44], 0xe2a5b
mov dword [esp + 0x48], 0x8cf573
mov dword [esp + 0x4c], 0x244714
mov dword [esp + 0x50], 0x78e8a2
mov dword [esp + 0x54], 0xc2a33
mov dword [esp + 0x58], 0x92b
mov dword [esp + 0x5c], 0x17dbd
mov dword [esp + 0x60], 0x703e
mov dword [esp + 0x64], 0x1ed7
mov dword [esp + 0x68], 0x29e3
mov dword [esp + 0x6c], 0x178
mov dword [esp + 0x70], 0x4d
mov dword [esp + 0x74], 0x60ca
mov dword [esp + 0x78], 0x2642
mov dword [esp + 0x7c], 0x1577e
mov dword [esp + 0x80], 0x1f26
mov dword [esp + 0x84], 0x12040
mov dword [esp + 0x88], 0x16a6f
mov dword [esp + 0x8c], 0xe188b
mov dword [esp + 0x90], 0x3a0b5
mov dword [esp + 0x94], 0xc18a2
mov dword [esp + 0x98], 0x13063
mov dword [esp + 0x9c], 0x111
mov dword [esp + 0xa0], 0x262c
mov dword [esp + 0xa4], 0xb39
mov dword [esp + 0xa8], 0x36f
mov dword [esp + 0x1c], 0
mov ebp, 0x7a
mov bl, 0x25
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
lea esi, [esp + 0x24]
lea edi, [eax + 0x61]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push ecx
push ebp
push edi
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x24], 0x5c
mov byte [esp + 0x25], 0x5c
mov byte [esp + 0x26], 0x2e
mov byte [esp + 0x27], 0x5c
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0x63
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x63
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 0x64
mov byte [esp + 0x2e], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea ecx, [esp + 0xac]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40f0e2
mov eax, dword [esp + 0x20]
add esi, 4
inc eax
cmp eax, 0x22
mov dword [esp + 0x20], eax
jb 0x40f027
mov edx, dword [esp + 0x1c]
inc edx
dec ebp
cmp ebp, 0x61
mov dword [esp + 0x1c], edx
jg 0x40f014
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
mov dword [0x7edf5f8], 1
pop ebp
mov byte [ecx], 0
pop ebx
add esp, 0x19c
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x7edf4f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x7edf4f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret
mov edi, 0x7edf4f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret