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

Disassembly:
sub esp, 0x290
mov eax, dword [0x1003a2dc]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x29c]
push esi
mov ebx, ecx
push edi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
mov dword [esp + 0x20], ebx
jle 0x100135e4
or esi, 0xffffffff
cmp dword [ebx + 4], esi
je 0x1001317e
call fcn.10012fb0
cmp dword [ebx + 0x134], 0
mov dword [ebx + 4], esi
jne 0x1001319d
lea esi, [ebx + 8]
mov ecx, 0x4b
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x100135e9
mov esi, dword [ebx]
cmp dword [esi + 0x10], 0
jle 0x100131aa
call fcn.10012890
mov eax, dword [ebx]
cmp dword [eax + 0x10], 0
jge 0x100131c1
mov esi, dword [ebx]
call fcn.100128d0
mov ecx, dword [ebx]
cmp dword [ecx + 0x10], 0
jl 0x100131b2
push 0x104
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x40]
push 0
push eax
mov eax, dword [ebx]
call fcn.10012440
mov edi, dword [ebx]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.10012930
add esp, 0x1c
test eax, eax
je 0x10013203
mov eax, 0x700
jmp 0x100135e9
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x1001322a
cmp byte [eax + 1], 0
je 0x10013267
mov edx, dword [eax + 0xc]
add edx, dword [esp + 0x14]
mov eax, dword [eax + 4]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10013231
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x1c], ecx
mov esi, dword [esp + 0x24]
push esi
call fcn.1001c231
mov edx, dword [ebx]
mov edi, dword [edx]
add esp, 4
push esi
mov ebx, 1
mov edx, eax
mov dword [esp + 0x18], eax
call fcn.10011f20
add esp, 4
cmp eax, esi
je 0x10013271
mov eax, dword [esp + 0x14]
push eax
call fcn.1001c079
add esp, 4
mov eax, 0x800
jmp 0x100135e9
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x194]
push 0x104
push edx
mov dword [ebp], eax
call fcn.1001e4e5
add esp, 0xc
lea edi, [esp + 0x190]
mov bl, 0x3a
mov al, byte [edi]
test al, al
je 0x100132b3
cmp byte [edi + 1], bl
jne 0x100132b3
add edi, 2
jmp 0x100132a3
cmp al, 0x5c
jne 0x100132bc
add edi, 1
jmp 0x100132a3
cmp al, 0x2f
jne 0x100132c5
add edi, 1
jmp 0x100132a3
push 0x10035e28
push edi
call fcn.1001b9b0
add esp, 8
test eax, eax
je 0x100132dc
lea edi, [eax + 4]
jmp 0x100132a3
push str..._
push edi
call fcn.1001b9b0
add esp, 8
test eax, eax
je 0x100132f3
lea edi, [eax + 4]
jmp 0x100132a3
push 0x10035e38
push edi
call fcn.1001b9b0
add esp, 8
test eax, eax
je 0x1001330a
lea edi, [eax + 4]
jmp 0x100132a3
push str._.._
push edi
call fcn.1001b9b0
add esp, 8
test eax, eax
je 0x10013321
lea edi, [eax + 4]
jmp 0x100132a3
push edi
lea eax, [ebp + 4]
push 0x104
push eax
call fcn.1001e4e5
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x44]
mov edx, eax
shr edx, 0x17
mov ecx, eax
shr ecx, 0x1e
not dl
add esp, 0xc
and cl, 1
and dl, 1
shr edi, 8
mov byte [esp + 0x1b], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 1
je 0x10013370
cmp edi, 7
je 0x10013370
cmp edi, 0xb
je 0x10013370
cmp edi, 0xe
jne 0x10013397
mov ecx, eax
shr ecx, 2
and cl, 1
mov byte [esp + 0x12], cl
mov ebx, eax
mov ecx, eax
mov dl, al
shr ebx, 1
shr ecx, 4
shr eax, 5
and dl, 1
and bl, 1
and cl, 1
and al, 1
jmp 0x1001339f
mov bl, byte [esp + 0x1b]
mov al, byte [esp + 0x13]
test cl, cl
mov dword [ebp + 0x108], 0
je 0x100133b7
mov dword [ebp + 0x108], 0x10
test al, al
je 0x100133c2
or dword [ebp + 0x108], 0x20
test bl, bl
je 0x100133cd
or dword [ebp + 0x108], 2
test dl, dl
je 0x100133d8
or dword [ebp + 0x108], 1
cmp byte [esp + 0x12], 0
je 0x100133e6
or dword [ebp + 0x108], 4
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov dword [ebp + 0x124], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [ebp + 0x128], edx
call fcn.10013030
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
cmp esi, 4
mov dword [ebp + 0x10c], eax
mov dword [ebp + 0x110], ecx
mov dword [ebp + 0x114], eax
mov dword [ebp + 0x118], ecx
mov dword [ebp + 0x11c], eax
mov dword [ebp + 0x120], ecx
jbe 0x100135b1
mov byte [esp + 0x1e], bl
mov eax, dword [esp + 0x14]
mov dl, byte [ebx + eax]
mov al, byte [eax + ebx + 1]
mov byte [esp + 0x1c], dl
mov edi, 0x10035e48
lea esi, [esp + 0x1c]
mov ecx, 3
xor edx, edx
mov byte [esp + 0x1d], al
repe cmpsb byte [esi], byte es:[edi]
je 0x1001349d
mov eax, dword [esp + 0x14]
movzx ecx, byte [ebx + eax + 2]
lea ebx, [ebx + ecx + 4]
lea edx, [ebx + 4]
cmp edx, dword [esp + 0x24]
jb 0x1001345b
jmp 0x100135b1
mov esi, dword [esp + 0x14]
movzx eax, byte [ebx + esi + 4]
mov ecx, eax
mov edx, eax
shr ecx, 1
shr edx, 2
and cl, 1
and dl, 1
add ebx, 5
test al, 1
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
je 0x10013514
movzx ecx, byte [ebx + esi + 1]
movzx edx, byte [ebx + esi]
xor eax, eax
mov ah, byte [ebx + esi + 3]
push 0
add ebx, 4
push 0x989680
mov al, byte [ebx + esi - 2]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cdq
add eax, 0xb6109100
adc edx, 2
push edx
push eax
call fcn.1002c390
mov ecx, edx
sar ecx, 0x1f
mov cl, byte [esp + 0x13]
mov dword [ebp + 0x120], edx
mov dl, byte [esp + 0x12]
mov dword [ebp + 0x11c], eax
test cl, cl
je 0x10013564
movzx edx, byte [ebx + esi + 1]
movzx ecx, byte [ebx + esi]
xor eax, eax
mov ah, byte [ebx + esi + 3]
push 0
add ebx, 4
push 0x989680
mov al, byte [ebx + esi - 2]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cdq
add eax, 0xb6109100
adc edx, 2
push edx
push eax
call fcn.1002c390
mov ecx, edx
mov dword [ebp + 0x110], edx
mov dl, byte [esp + 0x12]
sar ecx, 0x1f
mov dword [ebp + 0x10c], eax
test dl, dl
je 0x100135b1
mov eax, dword [esp + 0x14]
movzx ecx, byte [ebx + eax + 1]
xor edx, edx
mov dh, byte [ebx + eax + 3]
push 0
push 0x989680
mov dl, byte [ebx + eax + 2]
movzx eax, byte [ebx + eax]
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
cdq
add eax, 0xb6109100
adc edx, 2
push edx
push eax
call fcn.1002c390
mov ecx, edx
sar ecx, 0x1f
mov dword [ebp + 0x114], eax
mov dword [ebp + 0x118], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100135c2
push eax
call fcn.1001c079
add esp, 4
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
add edi, 8
mov ecx, 0x4b
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [edx + 0x134], 0
xor eax, eax
jmp 0x100135e9
mov eax, 0x10000
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001b9a0
add esp, 0x290
ret 4