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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ecx + 0x1b8]
push ebx
push esi
push edi
mov edi, dword [ecx]
mov esi, edx
test byte [edi + 0x44], 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], edi
je 0x10087495
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov dword [esp + 0x34], ecx
add ecx, 8
mov dword [esp + 0x20], eax
add eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x1c]
test eax, eax
je 0x100874cc
cmp dword [esi + 0x38], 0
jne 0x1008748c
cmp dword [ecx + 0x3c], 0
jne 0x1008748c
test dword [esi + 8], 0x100
je 0x100874df
test eax, eax
jne 0x1008748c
cmp dword [edx], 0
je 0x1008748c
mov ebx, dword [ecx + 8]
test bl, 1
jne 0x1008748c
mov edx, dword [ebp + 0xc]
test eax, eax
je 0x10087504
mov edi, dword [esp + 0x20]
cmp dword [edi], 1
mov edi, dword [esp + 0x10]
jg 0x1008748c
test edx, edx
jne 0x1008748c
cmp dword [esi + 0x2c], 0
je 0x10087514
cmp dword [ecx + 0x2c], 0
jne 0x1008748c
test edx, edx
je 0x10087522
cmp dword [ecx + 0x2c], 0
jne 0x1008748c
test eax, eax
je 0x1008753e
cmp dword [esi + 0x20], 0
jne 0x1008748c
test eax, eax
je 0x1008753e
test byte [esi + 8], 1
jne 0x1008748c
test ebx, 0x2000
jne 0x1008748c
mov eax, dword [esp + 0x14]
test byte [eax + 0x24], 0x20
je 0x1008757c
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x28], 1
cmp dword [eax], 1
jg 0x1008748c
test edx, edx
jne 0x1008748c
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], edx
jne 0x1008748c
cmp dword [ecx + 0x30], 0
lea ebx, [ecx + 0x30]
je 0x100875f3
test edx, edx
jne 0x1008748c
test byte [esi + 8], 1
jne 0x1008748c
mov eax, dword [esp + 0x20]
cmp dword [eax], 1
jne 0x1008748c
test byte [ecx + 8], 9
jne 0x1008748c
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x100875bf
cmp byte [ecx + 4], 0x74
jne 0x1008748c
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 1
jl 0x1008748c
mov ecx, edx
test ecx, ecx
jne 0x100875a4
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x100875f3
mov edx, dword [eax]
test edx, edx
jle 0x100875f3
add eax, 0x18
cmp word [eax], 0
je 0x1008748c
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x100875e1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 8]
push 0
push 0
push 0
mov edx, 0x15
mov dword [ecx + 0x1b8], eax
call fcn.100a7070
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [ecx + 0x1b8], eax
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
test eax, eax
je 0x100876d3
mov eax, dword [esp + 0x18]
mov ebx, dword [esi + 0x2c]
mov ecx, dword [eax + 0x30]
mov edi, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
push 0
mov edx, eax
mov dword [eax + 0x2c], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
call fcn.100b2a00
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx + 0x3c], esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x1008769e
mov eax, dword [esp + 0x2c]
jmp 0x100876af
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x30], ecx
test ecx, ecx
je 0x100876ac
mov dword [ecx + 0x34], eax
mov dword [eax + 0x34], esi
mov edi, dword [esp + 0x10]
mov dword [esi + 0x30], eax
cmp byte [edi + 0x49], 0
jne 0x1008794b
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10087633
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 4]
mov ebx, eax
mov ecx, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ebx
call fcn.100ecb90
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 8]
call fcn.100ecb90
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 0xc]
call fcn.100ecb90
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
test edx, edx
je 0x10087761
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x10087756
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1c8]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x1c8], edx
jmp 0x1008775a
dec eax
mov dword [edx + 0x20], eax
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esi + 0x1c]
mov edi, dword [eax]
mov byte [esp + 0xf], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x1008778b
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0x24]
mov byte [esp + 0xf], al
jmp 0x100877ae
mov ecx, dword [esp + 0x10]
push 0
push 0
xor edx, edx
call fcn.100a1160
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
mov dword [esi + 0x1c], ecx
test ecx, ecx
je 0x10087933
cmp edi, 1
jle 0x100877e3
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [edi - 1]
mov edx, ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.100a1220
mov ecx, eax
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi + 0x1c], ecx
cmp byte [eax + 0x49], 0
mov dword [esp + 0x20], ecx
jne 0x10087937
jmp 0x100877e7
mov eax, dword [esp + 0x10]
test edi, edi
jle 0x1008784b
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
add edi, 8
add ebx, 8
add edi, ecx
mov dword [esp + 0x30], edi
nop
mov edx, dword [edi + 0x38]
mov ecx, eax
call fcn.100a13e0
push 0x50
mov ecx, 0x14
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x30]
push 0
push ebx
mov dword [esp + 0x30], eax
call fcn.10003750
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add edi, 0x50
add esp, 0xc
add ebx, 0x50
dec dword [esp + 0x2c]
mov dword [esp + 0x30], edi
jne 0x10087800
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0xf]
mov byte [edx + ecx + 0x2c], al
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x1008787e
xor ecx, ecx
cmp dword [edx], ecx
jle 0x10087874
lea eax, [edx + 0x18]
xor edi, edi
mov word [eax], di
inc ecx
lea eax, [eax + 0x18]
cmp ecx, dword [edx]
jl 0x10087867
mov dword [esi + 0x2c], edx
mov dword [ebx + 0x2c], 0
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x10087899
mov ecx, dword [esp + 0x10]
push 0
push 0
call fcn.100b3270
add esp, 8
mov edi, eax
jmp 0x1008789b
xor edi, edi
cmp dword [esp + 0x28], 0
jle 0x100878ad
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.1008d6d0
push dword [esi + 0x20]
mov edx, edi
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.100b3920
add esp, 4
mov dword [esi + 0x20], eax
cmp byte [edi + 0x49], 0
jne 0x100878ff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [ebx]
push 0
mov edx, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x58], eax
call fcn.10087960
add esp, 4
mov eax, dword [ebx + 8]
and eax, 1
or dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10087919
mov dword [esi + 0x38], eax
mov dword [ebx + 0x38], 0
mov esi, dword [esi + 0x30]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], ebx
test esi, esi
jne 0x10087761
mov eax, edi
jmp 0x10087937
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x1008794b
push 1
mov ecx, eax
call fcn.1008dce0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret