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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
cmp eax, 0x25
jae 0x1087294
add eax, 0x10
jmp 0x108784b
push esi
push dword [edi + 8]
push dword [edi + 4]
call fcn.0108bfa2
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x10872be
cmp dword [edi], 0xb
jne 0x10872e1
push ebx
push ebx
call fcn.0108bd5a
mov esi, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x10872e1
lea ecx, [esi + 0x32c]
lea edx, [ebp - 0x3c]
call dword [fcn.0040f008]
cmp byte [esi + 0x24], bl
je 0x10872ec
lea ecx, [ebp - 0x3c]
call dword [fcn.0040f000]
push esi
call fcn.0108c2bc
mov eax, dword [edi + 0xc]
add eax, 0x10
jmp 0x108784a
mov eax, dword [edi]
cmp eax, 0xb
jne 0x10872fb
cmp byte [esi + 0x94], bl
jne 0x1087308
cmp eax, 0xa
jne 0x1087316
cmp byte [esi + 0x95], bl
je 0x1087316
lea ecx, [ebp - 0x3c]
call dword [fcn.0040f000]
jmp 0x1087842
lea ecx, [ebp - 0x3c]
call dword [fcn.0040f000]
push ebx
call fcn.0108be4c
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x10877f9
mov edx, dword [ebp + 8]
lea eax, [edi + 8]
push 7
mov edi, eax
lea esi, [edx + 0x10]
pop ecx
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x30]
add eax, 0x24
cmp dword [edx + 0xc], eax
jb 0x10877f3
mov eax, dword [ebp - 0xc]
add eax, 0x24
push 0xf
pop ecx
lea esi, [edx + 0x34]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 0x3c]
push 0x60
pop edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x10873c2
mov eax, dword [esi + 0x30]
sub eax, 0x3c
cmp ecx, eax
ja 0x10877ee
push 0x44554c46
push ecx
push dword [0x410668]
call dword [0x40f120]
mov ecx, eax
mov dword [edi + 0x60], ecx
test ecx, ecx
je 0x10877ee
push dword [edi + 0x3c]
lea eax, [esi + 0x70]
push eax
push ecx
call fcn.0108cdb2
add esp, 0xc
push 0x60
pop edx
add edx, dword [edi + 0x3c]
mov dword [ebp - 0x28], edx
jmp 0x10873c5
mov dword [edi + 0x60], ebx
mov ax, word [esi + 0xc]
sub ax, dx
movzx eax, ax
mov dword [ebp - 0x10], eax
test ax, ax
je 0x10877ee
movzx eax, ax
push 0x410b90
mov dword [edi + 0x68], eax
call fcn.01084772
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10877ee
mov ecx, dword [ebp - 0x10]
movzx eax, cx
push 0x43554c46
push eax
push dword [0x410668]
call dword [0x40f120]
mov edx, eax
mov dword [ebp - 0x20], edx
test edx, edx
je 0x10877ee
mov ecx, dword [ebp - 0x10]
movzx eax, cx
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
push eax
add ecx, esi
push ecx
push edx
call fcn.0108cdb2
mov ecx, dword [ebp - 0x10]
add esp, 0xc
movzx eax, cx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [0x40f128]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10877ee
push eax
call dword [0x40f07c]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
movzx eax, cx
push eax
push ebx
push dword [ebp - 0x18]
push ebx
push ebx
push dword [0x410694]
call dword [0x410fcc]
test eax, eax
js 0x10877ee
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov esi, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x18]
push esi
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], edi
call fcn.0108bd28
lea edx, [ebp - 0x3c]
lea ecx, [esi + 0x32c]
call dword [fcn.0040f008]
mov eax, dword [ebp + 8]
cmp dword [eax], 0xb
mov eax, dword [edi + 0x68]
jne 0x10874e5
add dword [esi + 0x8c], eax
cmp dword [esi + 0x8c], 0x800000
jbe 0x10874fe
mov byte [esi + 0x94], 1
jmp 0x10874fe
add dword [esi + 0x90], eax
cmp dword [esi + 0x90], 0x800000
jbe 0x10874fe
mov byte [esi + 0x95], 1
lea ecx, [ebp - 0x3c]
call dword [fcn.0040f000]
mov eax, dword [ebp + 8]
push ebx
cmp dword [eax], 0xb
push 1
push ebx
push 8
push dword [ebp - 0x30]
jne 0x108769c
lea ecx, [edi + 0x6c]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], ecx
stosd dword es:[edi], eax
call dword [0x40f010]
mov edx, eax
test edx, edx
je 0x10877f6
mov ecx, dword [esi + 0x18]
or ecx, dword [esi + 0x1c]
jne 0x1087567
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
mov ax, word [eax]
mov word [esi + 0x30], ax
push 0x11
pop eax
mov word [esi + 0x6a], ax
mov esi, dword [ebp - 0xc]
add esi, 0x44
push 7
add edi, 0x32
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
push 2
pop eax
cmp word [esi + 0x30], ax
mov ax, word [edi + 2]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x10]
movzx ecx, al
movzx eax, ah
jne 0x10875a8
shl cx, 8
or cx, ax
xor eax, eax
mov word [edx + 6], ax
lea eax, [edi + 4]
mov edi, dword [ebp - 0xc]
mov word [edx + 4], cx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov dword [ecx], eax
lea eax, [edi + 0x48]
jmp 0x10875ca
shl cx, 8
or cx, ax
xor eax, eax
mov word [edx + 6], ax
lea eax, [edi + 8]
mov edi, dword [ebp - 0xc]
mov word [edx + 4], cx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov dword [ecx], eax
lea eax, [edi + 0x4c]
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
mov dword [edi + 0x78], edx
cmp byte [0x410676], bl
jne 0x108761d
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
je 0x108761d
mov eax, dword [ebp - 0x14]
push eax
movzx eax, word [esi + 0x30]
push 0x409120
push dword [ebp - 8]
push dword [edi + 0x24]
push eax
lea eax, [edi + 0x6c]
push eax
push ebx
push dword [edi + 0x2c]
push dword [edi + 0x28]
push ebx
push dword [0x41067c]
call dword [0x410fe0]
jmp 0x108767b
push dword [edi + 0x38]
movzx eax, word [esi + 0x6a]
push dword [edi + 0x34]
push ebx
push ebx
push edx
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x1c]
movzx eax, word [esi + 0x30]
push dword [ebp - 0x28]
push eax
push ebx
push dword [ebp - 8]
call dword [0x410fd4]
test eax, eax
js 0x10877f9
push 2
pop eax
cmp word [esi + 0x30], ax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
push 0x409120
push dword [ebp - 8]
push dword [eax]
push ebx
push ebx
jne 0x108766f
push dword [0x410680]
jmp 0x1087675
push dword [0x410684]
call dword [0x410fd8]
mov edi, eax
test edi, edi
js 0x1087693
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], ebx
push ebx
push ebx
push 0xd
jmp 0x108777b
call dword [0x40f010]
mov edx, eax
test edx, edx
je 0x10877f9
cmp word [esi + 0x30], 2
jne 0x10876dc
mov cx, word [edi + 0xa]
mov eax, dword [ebp - 0x10]
mov word [edx], cx
movzx ecx, al
movzx eax, ah
shl cx, 8
or cx, ax
xor eax, eax
mov word [edx + 4], cx
mov word [edx + 6], ax
lea ecx, [edi + 0xc]
lea eax, [edi + 0x48]
jmp 0x1087703
mov ax, word [edi + 0xa]
mov word [edx], ax
mov eax, dword [ebp - 0x10]
movzx ecx, al
movzx eax, ah
shl cx, 8
or cx, ax
xor eax, eax
mov word [edx + 4], cx
mov word [edx + 6], ax
lea ecx, [edi + 0x10]
lea eax, [edi + 0x4c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x30], eax
mov ax, word [edi + 0x46]
push ebx
mov word [edx + 2], ax
movzx eax, word [esi + 0x6a]
push ebx
push eax
push dword [ebp - 0x30]
movzx eax, word [esi + 0x30]
push ecx
push eax
push ebx
push dword [ebp - 8]
call dword [0x410fd4]
test eax, eax
js 0x10877f9
mov eax, dword [ebp - 0x14]
push eax
movzx eax, word [esi + 0x30]
push 0x409120
push dword [ebp - 8]
push dword [edi + 0x38]
push dword [edi + 0x34]
push dword [edi + 0x24]
push eax
push ebx
push ebx
push ebx
push dword [0x41067c]
call dword [0x410fe4]
mov edi, eax
test edi, edi
js 0x1087777
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], ebx
push ebx
push ebx
push 0xc
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.01087b32
test edi, edi
jns 0x108783f
lea edx, [ebp - 0x3c]
lea ecx, [esi + 0x32c]
call dword [fcn.0040f008]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
cmp dword [eax], 0xb
mov eax, dword [edi + 0x68]
jne 0x10877c5
sub dword [esi + 0x8c], eax
cmp dword [esi + 0x8c], 0x800000
ja 0x10877dd
mov byte [esi + 0x94], bl
jmp 0x10877dd
sub dword [esi + 0x90], eax
cmp dword [esi + 0x90], 0x800000
ja 0x10877dd
mov byte [esi + 0x95], bl
lea ecx, [ebp - 0x3c]
call dword [fcn.0040f000]
push esi
call fcn.0108c2bc
jmp 0x10877f9
mov esi, dword [ebp - 4]
jmp 0x10877f9
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
je 0x1087806
push dword [ebp - 8]
call fcn.0108cbc6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1087814
push eax
call dword [0x40f0b0]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1087823
push ebx
push eax
call dword [fcn.0040f068]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1087835
push eax
push 0x410b90
call fcn.010847a4
test edi, edi
je 0x108783f
push edi
call fcn.0108c098
mov ebx, dword [ebp - 0x24]
push esi
call fcn.0108c2bc
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 4