Function at 0x101805d0
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 0x1018068f
test edi, edi
jne 0x1018060e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov dword [esp + 0x10], 0
cmp dword [edi + 0x30], 0
je 0x10180630
push edi
push 2
push ebx
call fcn.100f7060
add esp, 0xc
test eax, eax
jne 0x10180a36
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x1c], 0
lea eax, [ecx + 0xc]
mov dword [esp + 0x18], eax
je 0x10180664
mov esi, dword [edi]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0x9c]
and edx, 0x40
nop
mov ecx, dword [ecx + 0x1c]
test edx, edx
jne 0x1018065a
add ecx, dword [esi + 0x28]
cmp dword [ecx + 0x1c], 0
jne 0x10180650
mov esi, dword [esp + 0x1c]
add ecx, 0x14
cmp dword [ecx], 0
jne 0x10180677
cmp dword [ecx + 4], 0
cmove esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x64]
test ebp, ebp
jne 0x101806be
xor ecx, ecx
jmp 0x101806c1
mov dword [esp + 0x10], 1
test edi, edi
jne 0x10180616
lea eax, [esp + 0x24]
mov dword [esp + 0xc], edi
mov esi, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], esi
jmp 0x10180682
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x101806cc
mov eax, dword [eax + 4]
add ecx, 0x2c
add eax, ecx
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x101806f4
push eax
mov eax, dword [ecx]
call eax
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
test esi, esi
jne 0x10180723
test edi, edi
je 0x10180723
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push eax
push ebx
call fcn.100dc800
add esp, 0xc
test eax, eax
jne 0x10180a35
mov esi, dword [esp + 0x18]
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x1018073e
lea ecx, [esp + 0x30]
push ecx
push eax
push ebx
call fcn.100dc800
add esp, 0xc
test eax, eax
jne 0x10180a35
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1018075c
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 0x1018076d
mov dword [esi], 0x2000000
jmp 0x10180773
mov dword [esi], 2
test byte [ebx + 0x9c], 4
jne 0x1018079d
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 0x101807a4
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
test byte [ebx + 0x9c], 4
mov ecx, dword [esp + 0x1c]
jne 0x101807ce
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 0x101807d3
mov eax, dword [ecx]
mov dword [esi + 8], eax
test byte [ebx + 0x9c], 4
jne 0x101807fa
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 0x10180800
mov eax, dword [ecx + 4]
mov dword [esi + 0xc], eax
test byte [ebx + 0x9c], 4
jne 0x10180827
mov al, byte [esp + 0x63]
mov byte [esi + 0x10], al
mov al, byte [esp + 0x62]
mov byte [esi + 0x11], al
mov al, byte [esp + 0x61]
mov byte [esi + 0x12], al
mov al, byte [esp + 0x60]
mov byte [esi + 0x13], al
jmp 0x1018082e
mov eax, dword [esp + 0x60]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x9c]
and eax, 4
test ebp, ebp
jne 0x10180843
mov dword [esi + 0x14], ebp
add esi, 0x18
jmp 0x10180880
test eax, eax
jne 0x10180865
movzx eax, byte [ebp + 7]
mov byte [esi + 0x14], al
movzx eax, byte [ebp + 6]
mov byte [esi + 0x15], al
movzx eax, byte [ebp + 5]
mov byte [esi + 0x16], al
movzx eax, byte [ebp + 4]
mov byte [esi + 0x17], al
jmp 0x1018086b
mov eax, dword [ebp + 4]
mov dword [esi + 0x14], eax
push dword [ebp + 4]
add esi, 0x18
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 + 0x68]
and eax, 4
test ebp, ebp
jne 0x10180898
mov dword [esi], ebp
add esi, 4
jmp 0x101808d3
test eax, eax
jne 0x101808b9
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 0x101808be
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 0x101808fc
mov ecx, dword [esp + 0x6c]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], cl
jmp 0x10180902
mov eax, dword [esp + 0x6c]
mov dword [esi], eax
test byte [ebx + 0x9c], 4
jne 0x1018092c
mov ecx, dword [esp + 0x70]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
shr eax, 8
mov byte [esi + 6], al
mov byte [esi + 7], cl
jmp 0x10180933
mov eax, dword [esp + 0x70]
mov dword [esi + 4], eax
test byte [ebx + 0x9c], 4
jne 0x1018095d
mov ecx, dword [esp + 0x74]
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 0x10180964
mov eax, dword [esp + 0x74]
mov dword [esi + 8], eax
test byte [ebx + 0x9c], 4
jne 0x1018098b
mov al, byte [esp + 0x7b]
mov byte [esi + 0xc], al
mov al, byte [esp + 0x7a]
mov byte [esi + 0xd], al
mov al, byte [esp + 0x79]
mov byte [esi + 0xe], al
mov al, byte [esp + 0x78]
mov byte [esi + 0xf], al
jmp 0x10180992
mov eax, dword [esp + 0x78]
mov dword [esi + 0xc], eax
cmp dword [esp + 0x14], 0
jne 0x101809d4
test edi, edi
je 0x101809d4
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 0x101809b3
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 0x10180a1b
test edi, edi
je 0x10180a1b
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 0x10180a1b
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
cmp dword [esp + 0x14], 0
jne 0x10180a26
test edi, edi
jne 0x10180a33
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