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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x1c]
mov edx, 1
cmp dword [eax + 0x18], edx
jne 0x411b7f
xor esi, esi
xor ebx, ebx
jmp 0x411b88
mov ecx, dword [eax + 4]
mov ebx, edx
shl ebx, cl
xor esi, esi
mov ecx, dword [eax + 8]
shl edx, cl
cmp dword [esp + 0x28], 1
mov dword [esp + 0x18], ebx
jne 0x411bbb
cmp dword [eax + 0x10], 3
jne 0x411bbb
mov ecx, dword [eax]
cmp ecx, 0x11
jbe 0x411c50
mov ecx, 0x11
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
jmp 0x411bc1
xor ecx, ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x24], 1
jne 0x411bea
mov eax, 0x6ba72f
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, 1
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi], 0x6ba730
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
sub eax, dword [edi + 4]
mov dword [edi + 0x14], esi
mov dword [edi + 0x4c], esi
mov dword [edi + 0x74], esi
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
cmp ecx, 2
lea esi, [eax + edx*4]
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
jge 0x411c44
cmp ecx, 1
jge 0x411c20
mov dword [ebp + 0x10], eax
cmp ecx, 2
jge 0x411c3d
mov ebx, edx
and ebx, 3
mov ecx, edx
sub ecx, ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x14], ecx
cmp ecx, dword [ebp + 0x10]
jae 0x411c3d
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x411c68
mov byte [ebp + 0x18], 1
xor eax, eax
jmp 0x411c6b
cmp ecx, esi
je 0x411bbd
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
jmp 0x411bc1
mov dword [ebp + 0xc], esi
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x20]
cmp eax, 2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
lea esi, [ecx + ebx*4]
jge 0x411caa
cmp eax, 1
jge 0x411c8a
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
cmp eax, 2
jge 0x411ca3
mov ebx, edx
and ebx, 3
mov eax, edx
sub eax, ebx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x10]
jae 0x411ca3
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x411cb6
mov byte [ebp + 0x18], 1
xor eax, eax
jmp 0x411cbb
mov dword [ebp + 0xc], esi
mov eax, ecx
mov edx, dword [esp + 0x10]
mov dword [edi + 0x28], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x20]
cmp eax, 2
lea esi, [ecx + edx*4]
mov edx, dword [ebp + 0x14]
jge 0x411cfe
cmp eax, 1
jge 0x411cde
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
cmp eax, 2
jge 0x411cf7
mov ebx, edx
and ebx, 3
mov eax, edx
sub eax, ebx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x10]
jae 0x411cf7
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x411d0a
mov byte [ebp + 0x18], 1
xor ecx, ecx
jmp 0x411d0d
mov dword [ebp + 0xc], esi
mov dword [edi + 0x24], ecx
cmp byte [ebp + 0x18], 0
je 0x411d21
pop edi
pop esi
pop ebp
mov eax, 0xffffffc0
pop ebx
pop ecx
ret
mov esi, 1
cmp dword [esp + 0x20], esi
je 0x411d4f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jae 0x411d44
sub eax, ecx
push eax
push 0
push ecx
call fcn.005e5290
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
jae 0x411d4f
mov dword [ebp + 0x10], eax
cmp dword [esp + 0x28], esi
jne 0x411daf
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 7
jl 0x411daf
mov edx, 0x400
mov ecx, ebp
call fcn.0040f370
mov edx, 0x90
mov dword [edi + 0x30], eax
call fcn.0040f370
mov edx, 0xd4
mov dword [edi + 0x34], eax
call fcn.0040f370
mov edx, 0x80
mov dword [edi + 0x38], eax
call fcn.0040f370
mov edx, 0x8008
mov dword [edi + 0x3c], eax
call fcn.0040f370
mov edx, 0x1c01c
mov dword [edi + 0x40], eax
call fcn.0040f370
mov dword [edi + 0x44], eax
mov esi, dword [esp + 0x1c]
add edi, 0x78
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movzx eax, byte [ebp + 0x18]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 0xffffffc0
pop ebx
pop ecx
ret