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

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov al, byte [ecx]
mov byte [esp + 0xb], al
movzx eax, al
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
xor ecx, ecx
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x2c], edi
test eax, eax
je 0x10139473
movzx eax, byte [eax + 1]
mov dword [esp + 0x24], eax
jmp 0x10139479
mov eax, ecx
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x50], esi
test esi, esi
je 0x10139497
cmp dword [esi], ecx
jne 0x101394aa
mov esi, ecx
mov dword [esp + 0x50], ecx
test eax, eax
jne 0x101394aa
push edx
push dword [ebp + 0xc]
push edi
call fcn.1012543e
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp + 0x1c]
mov ebp, dword [eax]
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x101394e3
test esi, esi
je 0x101394d3
mov eax, dword [esi]
test byte [esi + 0x20], 1
mov eax, dword [eax]
lea edx, [eax + 1]
cmovne edx, eax
add dword [ebx + 0x2c], edx
mov dword [esp + 0x18], edx
mov eax, dword [ebx + 0x2c]
mov edx, dword [esp + 0x58]
inc eax
mov dword [edx + 0xc], eax
add dword [ebx + 0x2c], ebp
jmp 0x101394f2
mov edx, dword [ebx + 0x2c]
add eax, ebp
cmp eax, edx
jle 0x101394f2
lea eax, [edx + ebp]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
mov esi, dword [eax + 0xc]
mov dword [eax + 0x10], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
test edx, edx
js 0x10139540
mov dword [esp + 0x2c], ecx
lfence
test ebp, ebp
jle 0x10139678
mov ebx, ecx
lea eax, [ebx + esi]
push eax
push ebx
push edx
push 0x59
push edi
call fcn.100d3840
mov edx, dword [esp + 0x60]
add esp, 0x14
inc ebx
cmp ebx, ebp
jl 0x1013951d
mov ebx, dword [esp + 0x44]
jmp 0x10139678
mov al, byte [esp + 0x13]
cmp al, 3
je 0x10139678
cmp al, 0xa
je 0x10139558
cmp al, 9
je 0x10139558
cmp al, 0xd
jne 0x1013955a
mov cl, 1
mov edx, dword [esp + 0x50]
mov byte [esp + 0x4c], cl
test edx, edx
je 0x10139633
cmp dword [esp + 0x24], 0
jne 0x10139633
cmp al, 0xc
je 0x10139633
cmp al, 0xe
je 0x10139633
mov eax, dword [edx + 4]
or cl, 0xc
mov byte [esp + 0x4c], cl
mov ecx, dword [edx]
mov dword [esp + 0x28], eax
cmp eax, dword [ecx]
jge 0x101395ec
mov edi, dword [esp + 0x48]
mov ebx, eax
imul eax, ebx, 0x14
mov esi, edx
mov dword [esp + 0x28], eax
movzx edx, word [eax + ecx + 0x14]
mov dword [esp + 0x30], edx
test edx, edx
je 0x101395d0
mov eax, dword [edi + 0x1c]
mov dx, bx
sub dx, word [esi + 4]
inc dx
imul ecx, dword [esp + 0x30], 0x14
mov word [ecx + eax], dx
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
inc ebx
add eax, 0x14
mov dword [esp + 0x28], eax
cmp ebx, dword [ecx]
jl 0x101395a8
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
jle 0x10139633
lea edx, [eax + 0x14]
mov ebx, esi
mov edi, ecx
movzx ecx, word [edx]
xor eax, eax
test cx, cx
lea edx, [edx + 0x14]
cmove eax, ebx
mov ebx, eax
lea eax, [ebp - 1]
cmove eax, ebp
mov ebp, eax
sub edi, 1
jne 0x10139600
mov edi, dword [esp + 0x2c]
mov eax, ebx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x3c], al
xor eax, eax
mov dword [esp + 0x38], esi
cmp dword [ecx + 8], eax
je 0x10139666
test byte [esp + 0x4c], 8
je 0x10139666
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x10139666
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x24], ecx
jmp 0x10139678
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x4c]
push ebx
call fcn.1012e1a5
add esp, 0xc
cmp dword [esp + 0x24], 0
je 0x101397cc
mov edx, dword [esp + 0x54]
movzx eax, byte [edx + 1]
sub eax, 1
je 0x101397a5
sub eax, 1
je 0x101396ad
push esi
push ebp
push dword [esp + 0x64]
push dword [edx + 4]
push ebx
call fcn.100d3840
jmp 0x101397a0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
add eax, ebp
mov dword [ebx + 0x2c], eax
push dword [edx + 8]
mov dword [esp + 0x50], ecx
push edi
call fcn.10159a6c
mov eax, dword [esp + 0x5c]
push dword [eax + 8]
push edi
call fcn.1015fcbe
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov dword [eax + 8], ecx
lea ecx, [ebp - 1]
mov byte [eax], 0x48
mov dword [eax + 4], 1
mov eax, dword [edi + 0x6c]
add eax, ebp
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x54], eax
test ebp, ebp
jle 0x10139792
mov ecx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x1c]
push dword [eax + ecx + 4]
push ebx
call fcn.10145432
pop ecx
pop ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
lea eax, [ebp - 1]
cmp ecx, eax
jge 0x10139733
mov eax, dword [esp + 0x30]
lfence
push 0x34
jmp 0x10139739
mov eax, dword [esp + 0x5c]
push 0x35
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
pop edx
add eax, ecx
push eax
push dword [esp + 0x30]
lea eax, [esi + ecx]
push eax
push edx
push edi
call fcn.100d3840
push 0xfffffffffffffffe
push dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
call fcn.100d3840
push 0x80
push edi
call fcn.10159a50
mov eax, dword [esp + 0x80]
add esp, 0x2c
mov ecx, dword [esp + 0x28]
inc eax
add ecx, 0x14
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], ecx
cmp eax, ebp
jl 0x10139706
lea ecx, [ebp - 1]
push ecx
push dword [esp + 0x50]
push esi
push 0x4d
push edi
call fcn.100d3840
add esp, 0x14
jmp 0x101397b0
push dword [edx + 8]
push edi
call fcn.10159a6c
pop ecx
pop ecx
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x101397d0
mov eax, dword [esp + 0x48]
push dword [esp + 0x5c]
push dword [eax + 0xc]
push edi
call fcn.1012543e
add esp, 0xc
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x60]
dec ecx
cmp ecx, 0xe
ja case.0x101397e2.4
jmp dword [ecx*4 + 0x10139bbd]
push ebx
call fcn.10149be5
mov esi, eax
push esi
push ebp
push dword [esp + 0x2c]
push 0x5b
push edi
call fcn.100d3840
mov eax, dword [esp + 0x2c]
push ebp
push dword [esp + 0x3c]
push esi
push eax
push 0x83
push edi
call fcn.100d3840
push esi
push ebx
call fcn.10152995
add esp, 0x38
jmp case.0x101397e2.4
mov eax, dword [esp + 0x14]
push ebp
push esi
push eax
push 0x85
push edi
call fcn.100d3840
jmp 0x10139b8e
mov eax, dword [esp + 0x18]
inc eax
push eax
push ebx
mov dword [esp + 0x5c], eax
call fcn.10149ba4
mov dword [esp + 0x60], eax
add eax, dword [esp + 0x20]
push eax
push ebp
push esi
push 0x5b
push edi
mov dword [esp + 0x60], eax
call fcn.100d3840
add esp, 0x1c
cmp byte [esp + 0x13], 5
jne 0x1013989f
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0x14]
add eax, 4
push 0
push dword [esp + 0x5c]
inc esi
push eax
push esi
push 0x1e
push edi
call fcn.100d3840
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x78]
push esi
push 0x83
push edi
call fcn.100d3840
add esp, 0x30
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x101398c5
push dword [esp + 0x18]
push 1
push dword [esp + 0x24]
push dword [esp + 0x50]
push dword [esp + 0x58]
push ebp
push ebx
call fcn.1013551b
add esp, 0x1c
jmp 0x101398fd
push ebx
call fcn.10149be5
mov esi, eax
push esi
push dword [esp + 0x1c]
push 0x79
push edi
call fcn.101596d3
push esi
push dword [esp + 0x70]
push dword [esp + 0x30]
push 0x7a
push edi
call fcn.100d3840
push 8
push edi
call fcn.10159a50
push esi
push ebx
call fcn.10152995
add esp, 0x38
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebx
call fcn.100d3840
add esp, 0xc
jmp 0x10139b95
test eax, eax
jne 0x101399f4
mov eax, dword [esp + 0x58]
push ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], eax
call fcn.10149be5
push edx
push esi
push 0x32
push edi
mov ebx, eax
call fcn.101596d3
mov ecx, dword [esp + 0x6c]
shr ecx, 0x1f
push ebx
sub ebp, ecx
push ebp
lea eax, [ecx + esi]
push eax
push 0x5b
push edi
call fcn.100d3840
mov eax, dword [esp + 0x80]
add esp, 0x28
test eax, eax
jns 0x10139973
push esi
push ebx
push dword [esp + 0x1c]
push 0x7a
push edi
call fcn.100d3840
add esp, 0x14
jmp 0x10139b99
push eax
push esi
push ebx
push dword [esp + 0x20]
lfence
push 0x83
push edi
call fcn.100d3840
add esp, 0x18
jmp case.0x101397e2.4
test eax, eax
jne 0x101399f4
push ebx
call fcn.10149be5
mov esi, eax
mov eax, dword [esp + 0x5c]
push ebp
push dword [eax + 0x14]
push esi
push ebp
push dword [esp + 0x34]
push 0x5b
push edi
call fcn.100d3840
push ebp
push dword [esp + 0x44]
push esi
push dword [esp + 0x40]
push 0x83
push edi
call fcn.100d3840
push esi
push ebx
call fcn.10152995
add esp, 0x40
jmp case.0x101397e2.4
push dword [esp + 0x14]
push 1
push 0x45
push edi
call fcn.101596d3
add esp, 0x10
jmp case.0x101397e2.4
test eax, eax
je 0x10139b99
push dword [esp + 0x18]
push ebp
push dword [esp + 0x24]
push esi
push dword [esp + 0x58]
push eax
push ebx
call fcn.1013551b
add esp, 0x1c
jmp 0x10139bb5
test eax, eax
jne 0x101399f4
cmp byte [esp + 0x13], 0xd
jne 0x10139a33
mov eax, dword [esp + 0x58]
push dword [eax + 4]
push 0xe
push edi
call fcn.101596ba
add esp, 0xc
jmp 0x10139b99
push ebp
push esi
push 0x50
jmp 0x101399de
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
push ebx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x34], eax
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
call fcn.10149be5
mov dword [esp + 0x50], eax
lea eax, [edx + 2]
push eax
push ebx
call fcn.10149ba4
mov dword [esp + 0x34], eax
add esp, 0xc
add eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
inc eax
cmp byte [esp + 0x13], 6
mov dword [esp + 0x34], eax
jne 0x10139a97
push ebp
push esi
push 0
push eax
push 0x1e
push edi
call fcn.100d3840
add esp, 0x18
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
inc eax
push eax
push ebp
push esi
push 0x5b
push edi
call fcn.100d3840
add esp, 0x14
cmp byte [esp + 0x13], 6
jne 0x10139ad1
mov eax, dword [esp + 0x54]
inc eax
push eax
push dword [esp + 0x38]
push 0x83
push edi
call fcn.101596d3
push 0x10
push edi
call fcn.10159a50
add esp, 0x18
cmp dword [esp + 0x58], 0
jle 0x10139b18
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
add ecx, 0x14
lfence
mov dword [esp + 0x2c], ecx
xor ebp, ebp
lea eax, [ebx + ebp]
push eax
movzx eax, word [ecx]
dec eax
add eax, esi
push eax
push 0x4e
push edi
call fcn.101596d3
mov ecx, dword [esp + 0x3c]
add esp, 0x10
inc ebp
add ecx, 0x14
mov dword [esp + 0x2c], ecx
cmp ebp, dword [esp + 0x58]
jl 0x10139aec
mov ebx, dword [esp + 0x44]
push dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
push ebp
push 0x78
push edi
call fcn.101596d3
push dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x3c]
add eax, 2
push eax
push esi
push 0x5b
push edi
call fcn.100d3840
mov eax, dword [esp + 0x7c]
add eax, 2
push eax
push esi
push dword [esp + 0x78]
push ebp
push 0x83
push edi
call fcn.100d3840
mov eax, dword [esp + 0x60]
add esp, 0x3c
test eax, eax
je 0x10139b75
push eax
push edi
call fcn.1015fcbe
pop ecx
pop ecx
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
push dword [esp + 0x4c]
push ebx
call fcn.10152995
mov eax, dword [esp + 0x60]
add eax, 2
push eax
push esi
push ebx
call fcn.100d3840
add esp, 0x14
mov ebp, dword [esp + 0x50]
test ebp, ebp
jne 0x10139bb5
mov eax, dword [esp + 0x48]
cmp dword [eax + 8], 0
je 0x10139bb5
push dword [esp + 0x60]
push dword [eax + 8]
push 0x3b
push edi
call fcn.101596d3
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret