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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x10048200]
xor eax, esp
mov dword [esp + 0xc0], eax
cmp dword [0x10049364], 0
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xc8]
push ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe4]
push esi
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x50], eax
je 0x1001317c
mov eax, 0xfffffbd7
jmp 0x1001396d
push ebx
mov dword [0x1006b724], ecx
mov eax, dword [ecx + 0x2c]
push ecx
mov dword [0x1006b2b0], eax
call fcn.100227c0
test byte [ebx + 0x65], 8
je 0x100131a1
mov eax, 0xfffff8ef
jmp 0x1001396d
cmp dword [esi], 0x18
jae 0x100131b0
mov eax, 0xfffffc15
jmp 0x1001396d
mov ebx, dword [ebx + 0x10]
mov ecx, dword [esi + 8]
movzx eax, word [esi + 0xc]
push ebp
mov ebp, dword [ebx + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], eax
cmp ecx, 0xa
je 0x100131e5
cmp ecx, 0xc
je 0x100131e5
mov dword [esp + 0x34], edi
jmp 0x10013201
test ax, ax
jne 0x100131f0
movzx eax, word [ebp + 0x18]
jmp 0x100131fd
push eax
call fcn.1002a230
mov ecx, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
lea eax, [ecx - 1]
mov dword [esp + 0x18], edx
cmp eax, 0xe
ja 0x10013966
cmp ecx, 0xfe
je 0x10013966
cmp ecx, 0xff
je 0x10013966
cmp ecx, 0xf
je 0x10013966
cmp cx, 9
jae 0x1001325d
cmp ecx, 1
jne 0x1001324d
or edx, ecx
mov dword [esp + 0x18], edx
movzx eax, cx
mov eax, dword [eax*4 + 0x100010a8]
mov dword [esp + 0x10], eax
jmp 0x100132a1
cmp cx, 0xb
je 0x10013282
cmp cx, 0xc
je 0x10013282
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10013299
cmp eax, 0xff
jbe 0x100132a1
mov eax, 0xfffffa1e
jmp 0x1001396b
test dl, 1
jne 0x1001328d
cmp dword [esp + 0x10], edi
je 0x10013299
and edx, 0xfffffffe
mov edi, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0xff
cmp ecx, 0xa
je 0x100132ab
cmp ecx, 0xc
jne 0x100132dd
mov eax, dword [esp + 0x34]
movzx eax, ax
push eax
mov eax, dword [esp + 0x50]
movzx eax, ax
push eax
mov eax, dword [esp + 0x4c]
movzx eax, ax
push eax
call fcn.1002b690
cmp eax, 0xff
jne 0x100132d9
mov eax, 0xfffffbd9
jmp 0x1001396b
mov edx, dword [esp + 0x18]
test edx, 0x10000
mov eax, 1
cmovne edi, eax
mov dword [esp + 0x48], edi
test dl, 6
jne 0x100132fe
cmp dword [esp + 0xec], 0
je 0x10013302
mov dword [esp + 0x48], eax
mov edi, edx
and edi, 8
mov dword [esp + 0x5c], edi
je 0x1001331c
test dl, 0x10
je 0x1001331c
mov eax, 0xfffffc15
jmp 0x1001396b
mov eax, dword [esp + 0x30]
test byte [eax + 0x65], 4
jne 0x10013330
mov eax, 0xfffffae3
jmp 0x1001396b
push ebx
call fcn.1002b350
test eax, eax
js 0x1001396b
push dword [esp + 0x1c]
lea eax, [esp + 0x90]
mov dword [esp + 0x3c], 0
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
call fcn.100181d0
mov dword [esp + 0x60], eax
test eax, eax
jne 0x10013381
mov esi, 0xfffffc16
jmp 0x1001345e
cmp word [ebx + 0x54], 0
jne 0x10013398
push ebx
call fcn.1002ae30
mov esi, eax
test esi, esi
js 0x1001345e
push dword [esp + 0x40]
call fcn.100228d0
mov esi, eax
test esi, esi
js 0x1001345e
mov dword [esp + 0x30], 1
test edi, edi
je 0x100133dc
cmp dword [ebx + 0x30], 0xf000f000
je 0x100133ca
mov esi, 0xfffffa1a
jmp 0x1001345e
cmp word [esp + 0x28], 4
je 0x100133f3
mov esi, 0xfffffc15
jmp 0x1001345e
test byte [esp + 0x18], 0x10
je 0x100133f3
cmp dword [ebx + 0x34], 0xf000f000
je 0x100133ca
mov esi, 0xfffffa1a
jmp 0x1001345e
push 0x800
call fcn.1003a360
mov edi, eax
test edi, edi
jne 0x1001340a
mov esi, 0xfffffc0d
jmp 0x1001345e
mov ecx, dword [ebx + 0x18]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov edx, dword [ebp + 0x10c]
push eax
push 1
lea eax, [esp + 0x5c]
mov dword [esp + 0x28], edx
push eax
movzx eax, word [ebp + 0xea]
push eax
push ecx
push edx
call fcn.10018360
mov esi, eax
test esi, esi
js 0x10013454
push dword [esp + 0x50]
push ebp
call fcn.10011930
test eax, eax
jne 0x1001348e
mov esi, 0xfffffbad
test edi, edi
je 0x1001345e
push edi
call fcn.1003a2e0
push dword [esp + 0x20]
call fcn.100113e0
cmp dword [esp + 0x30], 0
je 0x10013473
call fcn.10024620
push ebx
call fcn.10016890
mov eax, 0xfffffa1c
cmp esi, 0xfffff9bb
cmove esi, eax
mov eax, esi
jmp 0x1001396b
push edi
push dword [esp + 0x58]
push dword [esp + 0x40]
push dword [esp + 0x28]
call fcn.1002c060
mov esi, eax
test esi, esi
js 0x10013454
lea eax, [esp + 0x6c]
push eax
call fcn.100176f0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push dword [esp + 0x30]
and eax, 1
push eax
push dword [esp + 0x4c]
push ebx
push ebp
call fcn.10012f90
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [ebp + 0x34]
lea ecx, [ebx + 0x54]
push 2
push ecx
push eax
lea ebp, [edi + 4]
mov dword [esp + 0x1c], eax
push ebp
call 0x10077dc8
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
push 1
inc eax
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1003a47d
mov eax, dword [esp + 0x14]
push 1
mov ecx, dword [eax + 0x38]
lea eax, [ebx + 0x56]
push eax
push ecx
push ebp
mov dword [esp + 0x20], ecx
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
push 1
inc eax
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1003a47d
mov eax, dword [esp + 0x14]
push 1
mov ecx, dword [eax + 0x3c]
lea eax, [ebx + 0x57]
push eax
push ecx
push ebp
mov dword [esp + 0x20], ecx
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
push 1
inc eax
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1003a47d
lea eax, [esp + 0x64]
push eax
call fcn.1003a5e0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x64]
push 8
push ecx
mov eax, dword [eax + 0x44]
push eax
push ebp
mov dword [esp + 0x20], eax
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
push 1
inc eax
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1003a47d
lea eax, [esp + 0x6c]
push eax
push ebp
push dword [esp + 0x58]
push dword [esp + 0x28]
call fcn.1002f180
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 0
push edi
mov eax, dword [eax + 0x110]
push eax
mov dword [esp + 0x24], eax
call fcn.1002dd00
mov esi, eax
test esi, esi
js 0x10013454
push 4
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x84]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
push 1
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x64]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
push 2
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x68]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x28]
cmp eax, 0xa
je 0x10013683
cmp eax, 0xc
jne 0x100136bf
push 2
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x60]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
push 2
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x7c]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x18]
shr eax, 4
and eax, 1
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x6c]
push ebp
call fcn.1000d260
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x18]
shr eax, 3
and eax, 1
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x74]
push ebp
call fcn.1000d260
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [esp + 0x18]
shr eax, 2
and eax, 1
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x70]
push ebp
call fcn.1000d260
mov esi, eax
test esi, esi
js 0x10013454
push 4
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x78]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
push dword [esp + 0x60]
lea eax, [esp + 0x90]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x80]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x10013454
push 0
push ebp
push dword [esp + 0x24]
call fcn.1002ef10
mov esi, eax
test esi, esi
js 0x10013454
push edi
call fcn.1003a2e0
xor edi, edi
test byte [esp + 0x18], 0x10
je 0x100138ff
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x34], eax
lea eax, [esp + 0x24]
push eax
push 5
push dword [ebx + 0x18]
push edi
push dword [esp + 0x24]
call fcn.1000aea0
mov esi, eax
test esi, esi
js 0x1001345e
push 1
push dword [esp + 0x28]
call fcn.1000ce30
mov esi, eax
test esi, esi
js 0x1001345e
push 0x800
call fcn.1003a360
mov edi, eax
test edi, edi
jne 0x100137e6
mov esi, 0xfffffc0d
jmp 0x1001345e
lea eax, [esp + 0x20]
push eax
push 1
push 0xff
push ebx
call fcn.1000fa80
mov esi, eax
test esi, esi
js 0x10013454
push dword [esp + 0x24]
call fcn.1000ba80
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 1
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x2c]
call fcn.1000fa30
mov esi, eax
test esi, esi
js 0x100138c0
cmp dword [esp + 0x10], 0
je 0x100138ce
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x28]
call fcn.10010270
mov esi, eax
test esi, esi
js 0x100138c0
push edi
push dword [esp + 0x20]
push dword [esp + 0x18]
push ebx
call fcn.1002c060
mov esi, eax
test esi, esi
js 0x100138c0
push 4
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x34]
lea ebp, [edi + 4]
push ebp
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x100138c0
mov eax, dword [esp + 0x20]
inc dword [esp + 0x18]
push ebp
push dword [eax + 0xc]
push dword [esp + 0x2c]
push dword [esp + 0x20]
call fcn.10011fd0
mov esi, eax
test esi, esi
js 0x100138c0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x2c]
call fcn.1000fa30
mov esi, eax
test esi, esi
jns 0x10013832
push dword [esp + 0x24]
call fcn.1000be80
jmp 0x10013454
test esi, esi
js 0x100138c0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x28], eax
push dword [esp + 0x24]
call fcn.1000be80
push dword [esp + 0x20]
call fcn.10011340
mov esi, eax
test esi, esi
js 0x10013454
push edi
call fcn.1003a2e0
cmp dword [esp + 0x5c], 0
je 0x1001390d
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x30], eax
push 1
push dword [esp + 0x44]
call fcn.100229e0
mov esi, eax
test esi, esi
js 0x10013454
mov eax, dword [0x1006b724]
cmp dword [eax + 0x28], 0
jbe 0x10013941
cmp dword [ebx + 0x44], 0
jne 0x10013941
mov dword [ebx + 0x44], eax
mov eax, dword [0x1006b724]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10013957
movzx ecx, word [esp + 0x28]
shl ecx, 0xc
or ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov eax, dword [esp + 0x48]
neg eax
sbb eax, eax
and eax, 0x1393
jmp 0x1001396b
mov eax, 0xfffffa19
pop edi
pop ebp
mov ecx, dword [esp + 0xc8]
pop esi
pop ebx
xor ecx, esp
call fcn.1003d130
add esp, 0xc4
ret 0x1c