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

Disassembly:
sub esp, 0x90
push esi
mov esi, dword [esp + 0x98]
test esi, esi
jne 0x100123fc
xor eax, eax
pop esi
add esp, 0x90
ret
cmp byte [esi], 0
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x10012448
cmp byte [esi + 1], 0
je 0x10012440
push 2
push 0
push 0
push dword [esi + 4]
call edi
cmp byte [esi], 0
je 0x1001244e
cmp byte [esi + 1], 0
je 0x10012438
push 1
push 0
push 0
push dword [esi + 4]
call edi
mov ecx, eax
sub ecx, dword [esi + 0xc]
jmp 0x10012451
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x10012462
or ebp, 0xffffffff
jmp 0x1001255e
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x1c]
mov eax, 0xffff
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp ecx, eax
jae 0x10012466
mov dword [esp + 0x18], ecx
push 0x404
call fcn.100317b2
mov edi, eax
add esp, 4
or ebp, 0xffffffff
test edi, edi
je 0x10012558
mov ecx, dword [esp + 0x18]
mov ebx, 4
mov dword [esp + 0x10], ebp
cmp ecx, ebx
jbe 0x1001254f
mov edx, 0x404
nop word [eax + eax]
lea eax, [ebx + 0x400]
mov ebx, ecx
cmp eax, ecx
mov ecx, dword [esp + 0x14]
cmovbe ebx, eax
sub ecx, ebx
mov ebp, ebx
cmp ebx, 0x404
mov dword [esp + 0x1c], ecx
cmova ebp, edx
cmp byte [esi], 0
je 0x100124e2
cmp byte [esi + 1], 0
je 0x1001254b
mov eax, dword [esi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x100124e5
mov dword [esi + 0x1c], ecx
push esi
push 1
push ebp
push edi
call fcn.10011d60
add esp, 0x10
cmp eax, 1
jne 0x1001254b
lea ecx, [ebp - 3]
test ecx, ecx
js 0x10012524
lea eax, [edi + 3]
add eax, ecx
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x10012520
cmp byte [edx + edi], 0x4b
jne 0x10012520
cmp byte [eax - 1], 5
jne 0x10012520
cmp byte [eax], 6
je 0x1001253f
test ecx, ecx
jns 0x10012503
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x1001254f
mov ecx, dword [esp + 0x18]
mov edx, 0x404
cmp ebx, ecx
jb 0x100124a0
jmp 0x1001254f
mov ebp, dword [esp + 0x1c]
add ebp, ecx
mov dword [esp + 0x10], ebp
jmp 0x10012528
mov ebp, dword [esp + 0x10]
push edi
call fcn.10031700
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
cmp ebp, 0xffffffff
setne bl
dec ebx
cmp byte [esi], 0
je 0x10012588
cmp byte [esi + 1], 0
je 0x10012583
mov eax, dword [esi + 0xc]
push 0
push 0
add eax, ebp
push eax
push dword [esi + 4]
call edi
jmp 0x1001258b
or ebx, 0xffffffff
jmp 0x1001258b
mov dword [esi + 0x1c], ebp
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.10012030
or edi, 0xffffffff
test eax, eax
lea eax, [esp + 0x1c]
push eax
push esi
cmovne ebx, edi
call fcn.10011fa0
test eax, eax
lea eax, [esp + 0x28]
push eax
push esi
cmovne ebx, edi
call fcn.10011fa0
test eax, eax
lea eax, [esp + 0x3c]
push eax
push esi
cmovne ebx, edi
call fcn.10011fa0
test eax, eax
lea eax, [esp + 0x3c]
push eax
push esi
cmovne ebx, edi
call fcn.10011fa0
add esp, 0x28
test eax, eax
mov eax, dword [esp + 0x1c]
cmovne ebx, edi
cmp eax, dword [esp + 0x24]
jne 0x100125f9
cmp dword [esp + 0x18], 0
jne 0x100125f9
cmp dword [esp + 0x14], 0
je 0x100125fe
mov ebx, 0xffffff99
lea eax, [esp + 0x40]
push eax
push esi
call fcn.10012030
test eax, eax
lea eax, [esp + 0x4c]
push eax
push esi
cmovne ebx, edi
call fcn.10012030
test eax, eax
lea eax, [esp + 0x38]
push eax
push esi
cmovne ebx, edi
call fcn.10011fa0
mov edx, dword [esi + 0xc]
add esp, 0x18
test eax, eax
mov eax, dword [esp + 0x44]
cmovne ebx, edi
mov edi, dword [esp + 0x40]
lea ecx, [edx + ebp]
add eax, edi
cmp ecx, eax
jb 0x100126bf
test ebx, ebx
jne 0x100126bf
sub edx, edi
mov dword [esp + 0x20], esi
sub edx, dword [esp + 0x44]
add edx, ebp
mov dword [esp + 0x3c], ebp
push 0x80
mov dword [esp + 0x30], edx
mov dword [esp + 0xa0], ebx
mov dword [esi + 0xc], ebx
call fcn.100317b2
push 0
push 0
mov ebx, eax
lea esi, [esp + 0x2c]
push 0
push 0
push 0
push 0
lea eax, [ebx + 0x78]
mov ecx, 0x20
push eax
lea eax, [ebx + 0x28]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x24]
push eax
push ebx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], 0
call fcn.100127b0
add esp, 0x28
neg eax
sbb eax, eax
inc eax
pop edi
mov dword [ebx + 0x18], eax
mov eax, ebx
pop ebp
pop ebx
pop esi
add esp, 0x90
ret
cmp byte [esi + 0x10], 0
je 0x100126ce
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
push esi
call fcn.1002c730
add esp, 8
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x90
ret