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

Disassembly:
push edi
push esi
push ebp
sub esp, 0x88
mov dword [esp + 0x68], ebx
push 0x10086408
call fcn.100678a4
mov dword [esp + 0x74], eax
push 0x100863f4
call fcn.1007613c
add esp, 8
test eax, eax
je 0x1003965e
push fcn.10039ef6
push 0
push 0x100863f4
call fcn.100678b8
add esp, 0xc
jmp 0x1003968f
push dword [esp + 0x70]
push 0x100863f4
call fcn.100678e4
lea eax, [esp + 0x78]
push 0x100ba160
push eax
call fcn.10039ef6
push dword [esp + 0x80]
push 0x100863f4
call fcn.100678f0
add esp, 0x18
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
xor ecx, ecx
xor eax, eax
xor edx, edx
test ecx, ecx
sete dl
mov ebx, 0x20
mov dword [esp + 0x4c], ecx
add edx, edx
add edx, edx
add edx, edx
add edx, edx
add edx, edx
shl ebx, cl
xor esi, esi
mov dword [esp + 0x64], ebx
lea edi, [ebx - 5]
mov dword [esp + 0x54], edi
mov ebp, 0x3f
xor ebx, ebx
test ebp, ebp
jbe 0x100397a8
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
lea edi, [eax + esi]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], edi
lea ecx, [ebx + ebx]
add ecx, ecx
add ecx, ecx
xor edi, edi
test eax, eax
jbe 0x10039792
cmp eax, 5
jb 0x1003a001
mov esi, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x5c], ebx
lea esi, [esi + ecx]
mov dword [esp + 0x60], esi
mov ebx, esi
mov dword [esp + 0x58], ebp
lea esi, [edi + edx]
mov ebp, dword [esp + 0x54]
mov ecx, esi
shl ecx, 9
mov eax, 0x80
add esi, 4
add edi, 4
cmp edi, ebp
mov byte [ecx + ebx + 0x10091f64], al
mov byte [ecx + ebx + 0x10092164], al
mov byte [ecx + ebx + 0x10092364], al
mov byte [ecx + ebx + 0x10092564], al
jbe 0x10039724
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x58], ebp
lea esi, [edi + edx]
mov ebp, esi
shl ebp, 9
mov byte [ebp + ebx + 0x10091f64], 0x80
add esi, 1
add edi, 1
cmp edi, eax
jb 0x10039773
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
add ecx, 8
add ebx, 1
cmp ebx, ebp
jb 0x100396f1
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
add esi, 0x8000
add ebp, 1
cmp ebp, 0x41
jb 0x100396cd
mov ecx, dword [esp + 0x4c]
add eax, 0x10000
add ecx, 1
cmp ecx, 2
jb 0x1003969f
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov dword [esp + 0x10], esi
xor edx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
xor eax, eax
xor ebx, ebx
xor ecx, ecx
mov esi, ebx
mov dword [esp + 0x1c], edx
test edx, edx
mov dword [esp + 4], ecx
mov dword [esp + 0x20], esi
mov ebx, 0
sete bl
xor ebp, ebp
mov edi, eax
add ebx, ebx
mov dword [esp + 0x18], edi
add ebx, ebx
add ebx, ebx
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x24], ebx
mov dl, byte [ebp + eax + 0x10086424]
mov byte [esp], dl
xor ebx, ebx
mov cl, dl
neg cl
add cl, 0xc
mov byte [esp + 0x28], cl
mov esi, 1
shl esi, cl
test esi, esi
jbe 0x10039ff2
mov edx, dword [esp + 0x18]
lea ecx, [edx + 0x10086420]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + eax + 0x10086420]
mov cl, byte [esp + 0x28]
mov edi, dword [esp + 4]
mov dword [esp + 0x64], edx
mov esi, edx
shl esi, cl
mov dl, byte [esp]
or esi, ebx
mov cl, byte [ebp + eax + 0x10086424]
mov byte [edi + esi*4 + 0x100b2060], dl
movzx edx, word [ebp + eax + 0x10086428]
mov word [edi + esi*4 + 0x100b2061], dx
mov dl, byte [ebp + eax + 0x1008642a]
add ebx, 1
mov byte [edi + esi*4 + 0x100b2063], dl
mov byte [esp], cl
mov edx, 1
mov byte [esp], cl
neg cl
add cl, 0xc
mov byte [esp + 0x28], cl
shl edx, cl
cmp ebx, edx
jb 0x10039851
mov dl, byte [esp]
mov ecx, dword [esp + 0x14]
movsx esi, byte [ebp + eax + 0x1008642a]
movzx edi, byte [ebp + eax + 0x10086429]
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
add ebx, ebx
lea ecx, [esi + ecx]
movzx esi, byte [ebp + eax + 0x10086428]
shl ecx, 9
add edi, edi
add edi, edi
add edi, edi
shl esi, 0xf
add esi, dword [esp + 0x20]
add esi, edi
add dl, 1
mov dword [ecx + esi + 0x10091f60], ebx
mov byte [ecx + esi + 0x10091f64], dl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
test ecx, ecx
jne 0x10039931
mov ecx, dword [esp + 0x14]
neg ecx
or ebx, 1
add ecx, dword [esp + 0x24]
shl ecx, 9
mov dword [ecx + esi + 0x10091f60], ebx
mov byte [ecx + esi + 0x10091f64], dl
add dword [esp + 0x18], 0xc
add ebp, 0xc
cmp ebp, 0x4c8
jb 0x1003981d
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x20]
add esi, 0x10000
add eax, 0x4c8
add ecx, 0x4000
add edx, 1
cmp edx, 2
jb 0x100397f1
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov dword [esp + 0x10], esi
xor ecx, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
xor edx, edx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 0x14], edx
xor eax, eax
test ecx, ecx
sete al
mov edi, 0x20
mov dword [esp + 0x4c], ecx
shl edi, cl
mov dword [esp + 0x60], edi
shl eax, 0xe
mov dword [esp + 0x50], eax
xor esi, esi
xor ebp, ebp
xor ebx, ebx
mov edx, 0x3f
xor ecx, ecx
test edx, edx
jbe 0x10039cae
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
mov eax, ebp
or eax, 0x1e00000
lea edi, [edi + esi]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x40], edi
lea eax, [eax + ebx]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], ebx
lea eax, [edi + eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ebp
mov dword [esp], esi
lea eax, [ecx + ecx]
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
mov esi, eax
mov eax, ecx
shl eax, 0xe
mov dword [esp + 0x2c], eax
mov ebp, eax
mov edx, dword [esp + 0x60]
mov eax, 1
cmp edx, 1
jbe 0x10039c5f
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
or edx, ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x58], ecx
lea ebx, [ebx + esi]
mov dword [esp + 0x48], ebx
mov edi, edx
or edi, 0x2000
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x24]
movzx edi, byte [edi + ecx + 0x10086dc0]
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
cmp eax, edx
ja 0x10039a8a
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + eax + 0x10086ec0]
mov edx, dword [esp + 0x58]
cmp edx, ebx
jbe 0x10039c44
jmp 0x10039a96
mov edx, dword [esp + 0x24]
movzx ebx, byte [edx + eax + 0x10086ec0]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
mov ebp, eax
sub ebp, esi
sub ecx, ebx
lea edx, [ecx - 1]
cmp ebp, esi
ja 0x10039ad2
mov esi, dword [esp + 0x24]
movzx esi, byte [ebp + esi + 0x10086ec0]
mov edi, dword [esp + 0x58]
cmp edi, esi
ja 0x10039ad2
mov esi, 6
mov dword [esp + 0x64], esi
mov dl, 8
mov byte [esp + 0x54], dl
mov edx, edi
jmp 0x10039aff
cmp edx, ebx
ja 0x10039be2
mov ebx, dword [esp + 0x24]
movzx ecx, byte [ecx + ebx + 0x10086dbf]
cmp eax, ecx
ja 0x10039be2
mov ebp, 0xe
mov dword [esp + 0x64], ebp
mov cl, 9
mov ebp, eax
mov byte [esp + 0x54], cl
mov ebx, dword [esp + 0x64]
mov esi, eax
shl esi, 9
add esi, dword [esp + 0x48]
mov dword [esp + 0x6c], esi
shl ebp, 9
lea edi, [edx + edx]
add ebp, dword [esp + 0x20]
mov cl, byte [ebp + edx*8 + 0x10091f64]
shl ebx, cl
or ebx, dword [ebp + edx*8 + 0x10091f60]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x5c], edi
mov dword [ecx + esi + 0x10091f60], ebx
mov bl, byte [esp + 0x54]
mov ecx, esi
add bl, byte [ebp + edx*8 + 0x10091f64]
mov edx, dword [esp + 0x50]
mov byte [edx + ecx + 0x10091f64], bl
mov edx, dword [esp + 0x4c]
test edx, edx
jne 0x10039bc2
mov esi, edi
mov cl, byte [ebp + esi*4 + 0x10091f64]
mov ebx, dword [esp + 0x64]
shl ebx, cl
mov edi, eax
or ebx, dword [ebp + esi*4 + 0x10091f60]
mov edx, dword [esp + 0x50]
neg edi
shl edi, 9
add edi, dword [esp + 0x48]
or ebx, 1
add eax, 1
mov dword [edi + edx + 0x10091f60], ebx
mov bl, byte [esp + 0x54]
add bl, byte [ebp + esi*4 + 0x10091f64]
mov ebp, dword [esp + 0x60]
cmp eax, ebp
mov byte [edi + edx + 0x10091f64], bl
jb 0x10039a68
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
jmp 0x10039c74
mov edx, dword [esp + 0x60]
add eax, 1
cmp eax, edx
jb 0x10039a68
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
jmp 0x10039c87
mov edx, dword [esp + 0x4c]
test edx, edx
jne 0x10039c44
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov edi, eax
shl edi, 9
add edi, ebx
mov esi, eax
and esi, 0xfff
add esi, esi
or esi, ebp
or esi, 1
mov cl, 0x1e
mov dword [edx + edi + 0x10091f60], esi
mov esi, eax
neg esi
shl esi, 9
add esi, ebx
mov byte [edx + edi + 0x10091f64], cl
mov ebx, eax
neg ebx
and ebx, 0xfff
add ebx, ebx
mov byte [esi + edx + 0x10091f64], cl
or ebx, ebp
or ebx, 1
mov dword [esi + edx + 0x10091f60], ebx
mov edx, dword [esp + 0x60]
add eax, 1
cmp eax, edx
jb 0x10039a68
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x10039c87
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
lea ebx, [eax + esi]
or edx, ebp
mov byte [ebx + 0x10091f64], 0x1e
or edx, 0x3fc1
mov dword [ebx + 0x10091f60], edx
mov eax, dword [esp + 0x3c]
add esi, 8
add ebp, 0x4000
add ecx, 1
cmp ecx, eax
jb 0x10039a19
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp]
add esi, 0x8000
add ebp, 0x100000
add ebx, 0x40
add edx, 1
cmp edx, 0x41
jb 0x100399bc
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x14], 0x10000
add ecx, 1
add dword [esp + 4], 0x80
cmp ecx, 2
jb 0x10039994
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov dword [esp + 0x10], esi
xor eax, eax
mov dword [0x102fcf00], eax
mov byte [0x102fcf04], al
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
xor ecx, ecx
mov eax, 1
shl eax, cl
lea edx, [eax + eax]
neg edx
lea esi, [edx + 1]
mov ebp, eax
neg ebp
cmp esi, ebp
jg 0x10039fe7
lea edx, [eax + edx + 1]
neg edx
cmp edx, 6
jl 0x10039fd5
mov dword [esp], eax
mov edi, eax
mov dword [esp + 0x14], ebp
lea ebx, [eax + eax]
add ecx, 1
movzx edx, cl
mov dword [esp + 0x2c], edx
mov dword [esp + 4], ebx
mov dword [esp + 0x24], ecx
neg edi
add edi, 0xfffffffa
mov dword [esp + 0x30], edi
lea edx, [esi + eax*2 - 1]
mov dword [esp + 0x18], edx
mov edi, edx
lea edx, [esi + ebx]
mov dword [esp + 0x1c], edx
mov ebp, edx
lea edx, [esi + eax*2 + 1]
mov dword [esp + 0x20], edx
lea edx, [esi + eax*2 + 2]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov ecx, edx
lea edx, [esi + eax*2 + 3]
mov eax, dword [esp + 0x2c]
mov dword [esi*8 + 0x102fcf00], edi
add edi, 5
mov byte [esi*8 + 0x102fcf04], al
mov dword [esi*8 + 0x102fcf08], ebp
mov byte [esi*8 + 0x102fcf0c], al
add ebp, 5
mov dword [esi*8 + 0x102fcf10], ebx
mov byte [esi*8 + 0x102fcf14], al
mov dword [esi*8 + 0x102fcf18], ecx
add ebx, 5
add ecx, 5
mov byte [esi*8 + 0x102fcf1c], al
mov dword [esi*8 + 0x102fcf20], edx
mov byte [esi*8 + 0x102fcf24], al
mov eax, dword [esp + 0x30]
add edx, 5
add esi, 5
cmp esi, eax
jle 0x10039d8d
mov eax, dword [esp]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea edi, [ebx + esi - 1]
mov dword [esi*8 + 0x102fcf00], edi
mov byte [esi*8 + 0x102fcf04], dl
add edi, 1
add esi, 1
cmp esi, ebp
jle 0x10039e08
lea ebp, [ebx - 1]
cmp eax, ebp
jg 0x10039edf
mov edx, ebx
sub edx, eax
add edx, 0xffffffff
cmp edx, 6
jl 0x10039fc9
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
add ebx, 0xfffffff9
movzx edx, cl
mov dword [esp + 0x20], edx
lea edx, [eax + 1]
lea esi, [eax + 2]
lea edi, [eax + 3]
mov ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov ebp, edi
lea edi, [eax + 4]
mov dword [eax*8 + 0x102fcf00], eax
mov byte [eax*8 + 0x102fcf04], dl
mov dword [eax*8 + 0x102fcf08], ecx
add ecx, 5
mov byte [eax*8 + 0x102fcf0c], dl
mov dword [eax*8 + 0x102fcf10], esi
mov byte [eax*8 + 0x102fcf14], dl
add esi, 5
mov dword [eax*8 + 0x102fcf18], ebp
mov byte [eax*8 + 0x102fcf1c], dl
mov dword [eax*8 + 0x102fcf20], edi
add ebp, 5
add edi, 5
mov byte [eax*8 + 0x102fcf24], dl
add eax, 5
cmp eax, ebx
jle 0x10039e65
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [eax*8 + 0x102fcf00], eax
mov byte [eax*8 + 0x102fcf04], dl
add eax, 1
cmp eax, ebp
jle 0x10039eca
cmp ecx, 0xe
jb 0x10039d0f
mov ebx, dword [esp + 0x68]
add esp, 0x88
pop ebp
pop esi
pop edi
ret
movzx edx, cl
mov dword [esp + 0x20], edx
jmp 0x10039ec6
lea ebx, [eax + eax]
add ecx, 1
movzx edx, cl
mov dword [esp + 0x2c], edx
jmp 0x10039e00
lea ebx, [eax + eax]
add ecx, 1
jmp 0x10039e20
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + 0x10086420]
jmp 0x100398bd
mov esi, dword [esp + 0x44]
lea esi, [esi + ecx]
mov dword [esp + 0x60], esi
jmp 0x10039764