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

Disassembly:
sub esp, 0x3c
test byte [esp + 0x4c], 0x10
push ebx
mov ebx, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
je 0x1018320c
test edi, edi
jne 0x1018318e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov dword [esp + 0x10], 0
cmp dword [edi + 0x30], 0
je 0x101831b3
push edi
push 0x91
push ebx
call fcn.100f7060
add esp, 0xc
test eax, eax
jne 0x10183614
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x1c], 0
lea eax, [ecx + 0xc]
mov dword [esp + 0x18], eax
je 0x101831e5
mov esi, dword [edi]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0x9c]
and edx, 0x40
mov ecx, dword [ecx + 0x1c]
test edx, edx
jne 0x101831db
add ecx, dword [esi + 0x28]
cmp dword [ecx + 0x1c], 0
jne 0x101831d1
mov esi, dword [esp + 0x1c]
add ecx, 0x14
cmp dword [ecx], 0
jne 0x101831f8
cmp dword [ecx + 4], 0
cmove esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x60]
test ebp, ebp
jne 0x1018323a
xor edx, edx
jmp 0x1018323d
mov dword [esp + 0x10], 1
test edi, edi
jne 0x10183196
lea eax, [esp + 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], 1
jmp 0x101831ff
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x10183249
xor ecx, ecx
jmp 0x1018324c
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x10183257
mov eax, dword [eax + 4]
add ecx, 0x30
add eax, ecx
mov ecx, dword [ebx + 0x6c]
add eax, edx
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x10183281
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x34]
add eax, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], 0
jne 0x101832b3
test edi, edi
je 0x101832b3
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push eax
push ebx
call fcn.100dc800
add esp, 0xc
test eax, eax
jne 0x10183613
mov esi, dword [esp + 0x18]
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x101832ce
lea ecx, [esp + 0x30]
push ecx
push eax
push ebx
call fcn.100dc800
add esp, 0xc
test eax, eax
jne 0x10183613
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x101832ec
push eax
sub esi, eax
add esi, dword [esp + 0x38]
push 0
push esi
call fcn.10220d70
mov esi, dword [esp + 0x3c]
add esp, 0xc
test byte [ebx + 0x9c], 4
jne 0x101832fd
mov dword [esi], 0x91000000
jmp 0x10183303
mov dword [esi], 0x91
test byte [ebx + 0x9c], 4
jne 0x1018332d
movzx eax, byte [esp + 0x13]
mov byte [esi + 4], al
movzx eax, byte [esp + 0x12]
mov byte [esi + 5], al
movzx eax, byte [esp + 0x11]
mov byte [esi + 6], al
mov eax, dword [esp + 0x10]
mov byte [esi + 7], al
jmp 0x10183334
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
test byte [ebx + 0x9c], 4
mov ecx, dword [esp + 0x1c]
jne 0x1018335e
movzx eax, byte [ecx + 3]
mov byte [esi + 8], al
movzx eax, byte [ecx + 2]
mov byte [esi + 9], al
movzx eax, byte [ecx + 1]
mov byte [esi + 0xa], al
movzx eax, byte [ecx]
mov byte [esi + 0xb], al
jmp 0x10183363
mov eax, dword [ecx]
mov dword [esi + 8], eax
test byte [ebx + 0x9c], 4
jne 0x1018338a
movzx eax, byte [ecx + 7]
mov byte [esi + 0xc], al
movzx eax, byte [ecx + 6]
mov byte [esi + 0xd], al
movzx eax, byte [ecx + 5]
mov byte [esi + 0xe], al
movzx eax, byte [ecx + 4]
mov byte [esi + 0xf], al
jmp 0x10183390
mov eax, dword [ecx + 4]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x9c]
and eax, 4
test ebp, ebp
jne 0x101833a5
mov dword [esi + 0x10], ebp
add esi, 0x14
jmp 0x101833e2
test eax, eax
jne 0x101833c7
movzx eax, byte [ebp + 7]
mov byte [esi + 0x10], al
movzx eax, byte [ebp + 6]
mov byte [esi + 0x11], al
movzx eax, byte [ebp + 5]
mov byte [esi + 0x12], al
movzx eax, byte [ebp + 4]
mov byte [esi + 0x13], al
jmp 0x101833cd
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
push dword [ebp + 4]
add esi, 0x14
push dword [ebp]
push esi
call fcn.102207f0
add esp, 0xc
add esi, dword [ebp + 4]
mov eax, dword [ebx + 0x9c]
mov ebp, dword [esp + 0x64]
and eax, 4
test ebp, ebp
jne 0x101833fa
mov dword [esi], ebp
add esi, 4
jmp 0x10183435
test eax, eax
jne 0x1018341b
movzx eax, byte [ebp + 7]
mov byte [esi], al
movzx eax, byte [ebp + 6]
mov byte [esi + 1], al
movzx eax, byte [ebp + 5]
mov byte [esi + 2], al
movzx eax, byte [ebp + 4]
mov byte [esi + 3], al
jmp 0x10183420
mov eax, dword [ebp + 4]
mov dword [esi], eax
push dword [ebp + 4]
add esi, 4
push dword [ebp]
push esi
call fcn.102207f0
add esp, 0xc
add esi, dword [ebp + 4]
test byte [ebx + 0x9c], 4
jne 0x1018345b
mov al, byte [esp + 0x6b]
mov byte [esi], al
mov al, byte [esp + 0x6a]
mov byte [esi + 1], al
mov al, byte [esp + 0x69]
mov byte [esi + 2], al
mov al, byte [esp + 0x68]
mov byte [esi + 3], al
jmp 0x10183461
mov eax, dword [esp + 0x68]
mov dword [esi], eax
test byte [ebx + 0x9c], 4
jne 0x10183488
mov al, byte [esp + 0x6f]
mov byte [esi + 4], al
mov al, byte [esp + 0x6e]
mov byte [esi + 5], al
mov al, byte [esp + 0x6d]
mov byte [esi + 6], al
mov al, byte [esp + 0x6c]
mov byte [esi + 7], al
jmp 0x1018348f
mov eax, dword [esp + 0x6c]
mov dword [esi + 4], eax
test byte [ebx + 0x9c], 4
jne 0x101834b9
mov ecx, dword [esp + 0x70]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 9], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xa], al
mov byte [esi + 0xb], cl
jmp 0x101834c0
mov eax, dword [esp + 0x70]
mov dword [esi + 8], eax
test byte [ebx + 0x9c], 4
jne 0x101834e7
mov al, byte [esp + 0x77]
mov byte [esi + 0xc], al
mov al, byte [esp + 0x76]
mov byte [esi + 0xd], al
mov al, byte [esp + 0x75]
mov byte [esi + 0xe], al
mov al, byte [esp + 0x74]
mov byte [esi + 0xf], al
jmp 0x101834ee
mov eax, dword [esp + 0x74]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x9c]
mov ebp, dword [esp + 0x78]
and eax, 4
test ebp, ebp
jne 0x10183507
mov dword [esi + 0x10], ebp
add esi, 0x14
jmp 0x10183544
test eax, eax
jne 0x10183529
movzx eax, byte [ebp + 7]
mov byte [esi + 0x10], al
movzx eax, byte [ebp + 6]
mov byte [esi + 0x11], al
movzx eax, byte [ebp + 5]
mov byte [esi + 0x12], al
movzx eax, byte [ebp + 4]
mov byte [esi + 0x13], al
jmp 0x1018352f
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
push dword [ebp + 4]
add esi, 0x14
push dword [ebp]
push esi
call fcn.102207f0
add esp, 0xc
add esi, dword [ebp + 4]
test byte [ebx + 0x9c], 4
jne 0x1018356a
mov al, byte [esp + 0x7f]
mov byte [esi], al
mov al, byte [esp + 0x7e]
mov byte [esi + 1], al
mov al, byte [esp + 0x7d]
mov byte [esi + 2], al
mov al, byte [esp + 0x7c]
mov byte [esi + 3], al
jmp 0x10183570
mov eax, dword [esp + 0x7c]
mov dword [esi], eax
cmp dword [esp + 0x14], 0
jne 0x101835b2
test edi, edi
je 0x101835b2
mov eax, dword [esp + 0x18]
xor esi, esi
mov ecx, dword [edi + 0x40]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x10183591
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x18]
pop ebp
pop edi
or dword [eax + 0x5c], 4
mov eax, dword [esp + 0x50]
mov dword [eax], esi
mov dword [eax + 4], 1
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x20]
or eax, 8
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push ebx
call fcn.101252a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x101835f9
test edi, edi
je 0x101835f9
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax], ecx
cmp ebp, edx
je 0x101835f9
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
cmp dword [esp + 0x14], 0
jne 0x10183604
test edi, edi
jne 0x10183611
push dword [esp + 0x30]
push ebx
call fcn.100dc7e0
add esp, 8
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret