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

Disassembly:
sub esp, 0x294
mov eax, dword [0x1012e750]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
mov ebx, dword [esp + 0x2a0]
push ebp
push edi
mov edi, dword [esp + 0x2a4]
mov ebp, ecx
cmp edi, 0xffffffff
jl 0x10013e07
mov eax, dword [ebp]
cmp edi, dword [eax + 4]
jge 0x10013e07
cmp dword [ebp + 4], 0xffffffff
je 0x1001382b
push eax
call fcn.10012360
add esp, 4
push esi
mov dword [ebp + 4], 0xffffffff
cmp edi, dword [ebp + 0x134]
jne 0x10013869
cmp edi, 0xffffffff
je 0x10013869
lea esi, [ebp + 8]
mov ecx, 0x4b
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x29c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002ca58
add esp, 0x294
ret 8
mov eax, dword [ebp]
cmp edi, 0xffffffff
jne 0x100138d9
mov eax, dword [eax + 4]
mov dword [ebx], eax
mov byte [ebx + 4], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
mov dword [ebx + 0x11c], 0
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x128], 0
jmp 0x1001384c
cmp dword [eax + 0x10], edi
jle 0x100138ed
push eax
call fcn.10012310
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x10013949
mov esi, eax
mov eax, esi
test esi, esi
je 0x10013942
cmp dword [esi + 0x18], 0
je 0x10013942
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x10013942
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.100127b0
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp]
mov esi, eax
cmp dword [eax + 0x10], edi
jl 0x100138f1
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0xac]
push ecx
push 0
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.100127b0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push dword [ebp]
call fcn.10012e50
add esp, 0x34
test eax, eax
je 0x10013993
mov eax, 0x700
jmp 0x1001384e
mov eax, dword [ebp]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x100139ba
cmp byte [ecx + 1], 0
je 0x100139eb
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x10]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x100139c1
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.1002ca8e
mov ecx, dword [ebp]
mov edi, eax
push dword [ecx]
push esi
push 1
push edi
call fcn.10011d60
add esp, 0x14
cmp eax, esi
je 0x100139f5
push edi
call fcn.1002ca97
add esp, 4
mov eax, 0x800
jmp 0x1001384e
mov eax, dword [ebp]
xor ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
nop
mov al, byte [esp + ecx + 0x98]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x19b], al
test al, al
jne 0x10013a00
lea esi, [esp + 0x19c]
nop dword [eax]
mov al, byte [esi]
test al, al
je 0x10013a3f
cmp byte [esi + 1], 0x3a
jne 0x10013a31
add esi, 2
jmp 0x10013a20
cmp al, 0x5c
jne 0x10013a38
inc esi
jmp 0x10013a20
cmp al, 0x2f
jne 0x10013a3f
inc esi
jmp 0x10013a20
push 0x10051fa0
push esi
call fcn.100359ad
add esp, 8
test eax, eax
je 0x10013a56
lea esi, [eax + 4]
jmp 0x10013a20
push str..._
push esi
call fcn.100359ad
add esp, 8
test eax, eax
je 0x10013a6d
lea esi, [eax + 4]
jmp 0x10013a20
push 0x10051fb0
push esi
call fcn.100359ad
add esp, 8
test eax, eax
je 0x10013a84
lea esi, [eax + 4]
jmp 0x10013a20
push str._.._
push esi
call fcn.100359ad
add esp, 8
test eax, eax
je 0x10013a9b
lea esi, [eax + 4]
jmp 0x10013a20
mov ecx, ebx
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi + 3], al
test al, al
jne 0x10013aa0
mov edx, dword [esp + 0x6c]
mov eax, edx
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [esp + 0x10], eax
not cl
mov eax, dword [esp + 0x38]
and cl, 1
shr eax, 8
mov byte [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x1c], 1
test eax, eax
je 0x10013af2
cmp eax, 7
je 0x10013af2
cmp eax, 0xb
je 0x10013af2
cmp eax, 0xe
jne 0x10013b28
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [esp + 0x10], al
and edx, 0xffffff01
jmp 0x10013b2c
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [ebx + 0x108], 0
cmp byte [esp + 0x10], al
je 0x10013b4d
mov dword [ebx + 0x108], 0x10
mov eax, 0x10
test dl, dl
je 0x10013b5a
or eax, 0x20
mov dword [ebx + 0x108], eax
cmp byte [esp + 0x24], 0
je 0x10013b6a
or eax, 2
mov dword [ebx + 0x108], eax
test cl, cl
je 0x10013b77
or eax, 1
mov dword [ebx + 0x108], eax
cmp byte [esp + 0x14], 0
je 0x10013b87
or eax, 4
mov dword [ebx + 0x108], eax
mov edx, dword [esp + 0x48]
mov esi, 0x7bc
mov eax, dword [esp + 0x50]
mov ecx, edx
mov dword [ebx + 0x124], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x128], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [esp + 0x88], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [esp + 0x8e], cx
mov word [esp + 0x8a], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x90], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [esp + 0x92], ax
xor eax, eax
mov word [esp + 0x96], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x8c]
mov word [esp + 0x98], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x120], eax
jbe 0x10013ddc
mov byte [esp + 0x12], 0
nop dword [eax]
movzx eax, byte [esi + edi]
mov ecx, 0x10051fc0
mov byte [esp + 0x10], al
movzx eax, byte [esi + edi + 1]
mov byte [esp + 0x11], al
lea eax, [esp + 0x10]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013cc0
test dl, dl
je 0x10013cbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013cc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013ca0
xor eax, eax
jmp 0x10013cc5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013ce1
movzx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x10013c80
jmp 0x10013ddc
mov al, byte [esi + edi + 4]
add esi, 5
movzx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
test al, 1
je 0x10013d4e
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x11c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x120], edx
mov edx, dword [esp + 0x1c]
test dl, dl
je 0x10013d95
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x10c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x14], 0
je 0x10013ddc
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x114], eax
adc edx, 0x19db1de
mov dword [ebx + 0x118], edx
test edi, edi
je 0x10013de9
push edi
call fcn.1002ca97
add esp, 4
mov eax, dword [esp + 0x2a8]
lea edi, [ebp + 8]
mov ecx, 0x4b
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x134], eax
jmp 0x1001384c
mov eax, 0x10000
jmp 0x1001384f