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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x100150f4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov dword [esp + 0x44], ecx
mov eax, dword [0x1001500c]
mov edi, 0x1001500c
cmp eax, edi
je 0x10005646
test byte [eax + 0x1c], 1
je 0x10005646
cmp byte [eax + 0x19], 5
jb 0x10005646
push dword [eax + 0x14]
mov edx, 0x100023c4
push dword [eax + 0x10]
push 0x35
pop ecx
call fcn.100036c7
mov eax, dword [0x1001500c]
mov ebx, dword [ebp + 8]
and dword [esp + 0x34], 0
mov esi, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x28], edx
cmp eax, edi
je 0x10005682
test byte [eax + 0x1c], 1
je 0x10005682
cmp byte [eax + 0x19], 5
jb 0x10005682
push edx
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x36
pop ecx
call fcn.100037b7
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x18], 1
jne 0x100059de
lea esi, [ebx + 0x14]
mov eax, dword [esi]
cmp eax, dword [ebx + 0x1c]
ja 0x100059de
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
ja 0x100059de
mov eax, dword [ebx + 0x24]
cmp eax, dword [ebx + 0x28]
ja 0x100059de
mov eax, dword [edx + 0xc]
lea edi, [esp + 0x54]
mov ecx, dword [ecx + 0x24]
mov edx, ecx
mov dword [esp + 0x50], ecx
push 6
sub edx, dword [eax + 0x24]
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
pop ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x4c], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
je 0x10005719
mov ebx, edx
sub esp, 0x18
lea eax, [esp + 0xc8]
lea esi, [esp + 0x6c]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1000ffa1
lea edi, [esp + 0x54]
mov esi, eax
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
sub ebx, 1
jne 0x100056ea
mov edx, dword [esp + 0x4c]
cmp edx, dword [esp + 0x50]
jae 0x100059d6
imul esi, edx, 0x50
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x68]
sub esi, dword [esp + 0x64]
mov dword [esp + 0x24], esi
xor esi, esi
mov edi, dword [eax + 0xc]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], ecx
mov ecx, esi
or ecx, 2
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov ebx, dword [eax + 0xc]
add ebx, edx
mov dword [esp + 0x84], esi
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x54]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x60]
sub edx, dword [esp + 0x58]
test byte [edi + 0x14], 3
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], edx
mov dword [esp + 0x6c], eax
jne 0x100057fc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x18]
or ecx, 0x40
mov dword [esp + 0x88], eax
jmp 0x1000580f
and dword [esp + 0x74], 0
or ecx, 0x10
mov eax, dword [esi + edi + 0xe0]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.100068f9
test eax, eax
js 0x100059d2
test byte [esp + 0x98], 0x40
je 0x10005911
mov eax, dword [edi + 0x2c]
mov ecx, dword [esi + edi + 0xdc]
imul ecx, dword [esp + 0x64]
mov dword [esp + 0xa0], eax
imul eax, dword [esp + 0x54]
add ecx, eax
mov eax, dword [esi + edi + 0xd8]
imul eax, dword [esp + 0x58]
add ecx, eax
add ecx, dword [esi + edi + 0xe8]
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x24], ecx
jbe 0x10005940
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x40], eax
xor edx, edx
mov dword [esp + 0x3c], edx
test ebx, ebx
je 0x100058f9
mov ebx, dword [esp + 0xa0]
imul ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + edi + 0xdc]
imul ecx, dword [esp + 0x20]
mov eax, dword [esi + edi + 0xd8]
imul eax, edx
push ebx
add ecx, dword [esp + 0x38]
add eax, ecx
push eax
push dword [esp + 0x24]
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [esp + 0x90]
inc edx
add dword [esp + 0x1c], eax
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0xc]
jb 0x100058a9
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
add eax, dword [esp + 0x94]
inc ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
cmp ecx, dword [esp + 0x24]
jb 0x1000588f
jmp 0x10005940
mov ecx, dword [esi + edi + 0xe8]
add ecx, dword [esp + 0x74]
mov eax, dword [esi + edi + 0xe0]
mov edx, dword [ebx + 0xe0]
cmp eax, edx
jb 0x1000592f
mov eax, edx
push eax
push ecx
push dword [esp + 0x94]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
and dword [esp + 0xac], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa4]
push eax
call fcn.10006d5e
mov ebx, eax
test ebx, ebx
js 0x100059da
sub esp, 0x18
lea eax, [esp + 0xe0]
lea esi, [esp + 0x6c]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1000ffa1
shr dword [esp + 0x10], 1
lea edi, [esp + 0x54]
shr dword [esp + 0x14], 1
mov esi, eax
shr dword [esp + 0x18], 1
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
add edx, 0x50
add dword [esp + 0x30], 0x50
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x48], edx
add eax, ecx
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0x50]
jb 0x10005736
jmp 0x100059da
xor ebx, ebx
jmp 0x100059da
mov ebx, dword [esp + 0x34]
mov eax, ebx
jmp 0x100059e3
mov eax, 0x80004005
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10011410
mov esp, ebp
pop ebp
ret 4