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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41b5a7
mov ebp, dword [esp + 0x80]
lea eax, [esp + 0x78]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0xc]
cmp esi, eax
jle 0x41b555
cmp ebp, eax
jle 0x41b555
test ebp, ebp
je 0x41b5a7
lea eax, [esp + 0x70]
mov esi, dword [eax]
lea eax, [esp + 0x74]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov edi, dword [eax + 4]
jmp 0x41b002
cmp edi, ebp
jb 0x41b02a
add esi, 8
mov ebp, dword [esp + 0x24]
dec ebp
je 0x41b5a7
mov dword [esp + 0x24], ebp
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
cmp ebp, edi
mov eax, edi
cmovb eax, ebp
test eax, eax
je 0x41aff0
push eax
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x41aff0
jns 0x41aff4
lea eax, [esp + 0x70]
mov dword [eax], esi
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
cmp eax, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
jge 0x41b0f0
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
mov ecx, dword [esp]
lea edx, [ecx + eax*8]
cmp esi, ecx
mov dword [esp + 0x30], eax
je 0x41b130
mov edi, ecx
sub edi, esi
sar edi, 3
mov eax, dword [edx]
mov dword [esp + 8], eax
mov ebx, dword [edx + 4]
mov ecx, esi
mov ebp, edi
mov dword [esp + 0x1c], ebx
jmp 0x41b096
lea ecx, [ecx + ebp*8]
add ecx, 8
not ebp
add ebp, dword [esp + 0x10]
mov edi, ebp
test ebp, ebp
je 0x41b130
mov dword [esp + 0x10], edi
shr ebp, 1
mov edi, dword [ecx + ebp*8 + 4]
cmp edi, ebx
mov eax, ebx
cmovb eax, edi
test eax, eax
je 0x41b0e0
push eax
push dword [ecx + ebp*8]
push dword [esp + 0x10]
mov esi, edx
mov ebx, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ecx, ebx
mov ebx, dword [esp + 0x28]
mov edx, esi
mov esi, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x41b0e0
jns 0x41b080
jmp 0x41b08c
cmp ebx, edi
jb 0x41b08c
jmp 0x41b080
cmp eax, 1
je 0x41b596
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
mov dword [esp + 0x14], ecx
lea ecx, [esi + ecx*8]
mov edx, dword [esp + 0x28]
mov edi, edx
sub edi, dword [esp]
jne 0x41b21b
mov eax, edx
mov edi, dword [esp]
sub eax, edi
sar eax, 3
jmp 0x41b142
mov eax, ecx
sub eax, esi
sar eax, 3
mov dword [esp + 0x14], eax
mov edi, dword [esp]
mov eax, dword [esp + 0x30]
cmp ecx, edi
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
je 0x41b20f
sub edx, edi
mov dword [esp + 0x2c], edx
je 0x41b2a6
mov dword [esp + 0x30], eax
lea eax, [ecx + 8]
cmp eax, edi
mov dword [esp + 0xc], ebx
je 0x41b2b6
lea ebx, [edi + 8]
sub edi, ecx
mov ecx, edi
sar ecx, 3
mov edx, dword [esp + 8]
cmp ebx, edx
je 0x41b2f4
mov edx, dword [esp + 0x2c]
sar edx, 3
mov dword [esp + 4], ecx
cmp ecx, edx
jne 0x41b1e0
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x14]
nop word cs:[eax + eax]
movsd xmm0, qword [eax - 8]
movsd xmm1, qword [ebx - 8]
movsd qword [eax - 8], xmm1
movsd qword [ebx - 8], xmm0
cmp eax, dword [esp]
je 0x41b321
lea ecx, [ebx + 8]
add eax, 8
cmp ebx, edx
mov ebx, ecx
jne 0x41b1b0
jmp 0x41b321
mov eax, dword [esp + 4]
mov esi, edx
cdq
mov dword [esp + 4], esi
idiv esi
test edx, edx
jne 0x41b1e0
mov dword [esp], edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
lea edi, [eax + edx*8]
test dl, 1
jne 0x41b32a
mov eax, edx
jmp 0x41b388
mov dword [esp], edx
mov edi, dword [esp + 0x14]
jmp 0x41b494
sar edi, 3
mov eax, dword [ecx]
mov dword [esp + 8], eax
mov ebx, dword [ecx + 4]
mov edx, dword [esp]
mov ebp, edi
mov dword [esp + 0x1c], ebx
jmp 0x41b25a
lea edx, [edx + ebp*8]
add edx, 8
not ebp
add ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov edi, ebp
test ebp, ebp
je 0x41b118
mov dword [esp + 0x10], edi
shr ebp, 1
mov edi, dword [edx + ebp*8 + 4]
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
test eax, eax
je 0x41b2a0
push eax
push dword [esp + 0xc]
push dword [edx + ebp*8]
mov esi, edx
mov ebx, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ecx, ebx
mov ebx, dword [esp + 0x28]
mov edx, esi
add esp, 0xc
test eax, eax
je 0x41b2a0
jns 0x41b24c
jmp 0x41b240
cmp edi, ebx
jae 0x41b24c
jmp 0x41b240
mov dword [esp], ecx
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 8]
jmp 0x41b494
mov eax, dword [ecx]
mov dword [esp + 4], eax
mov ebx, dword [ecx + 4]
mov ebp, dword [esp + 0x2c]
push ebp
push edi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [eax + ebp]
mov dword [esp], ecx
mov dword [eax + ebp + 4], ebx
mov ecx, dword [esp + 4]
mov dword [eax + ebp], ecx
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
jmp 0x41b48c
shl ecx, 3
sub edx, ecx
push edi
mov edi, dword [esp + 0x14]
push edi
mov dword [esp + 8], edx
push edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov edx, dword [esp + 0x14]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp + 4]
mov dword [edi], eax
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
jmp 0x41b490
lea ebx, [edi - 8]
mov eax, dword [edi - 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi - 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp]
lea ebp, [edi + eax]
add ebp, 0xfffffff8
mov edi, ebx
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x10]
nop
mov edx, edi
mov edi, ebp
movsd xmm0, qword [ebp]
movsd qword [edx], xmm0
mov edx, eax
sub edx, ebp
sar edx, 3
mov ebp, ecx
sub ebp, edx
lea edx, [edi + ecx*8]
lea ebp, [esi + ebp*8]
cmovl ebp, edx
cmp ebp, ebx
jne 0x41b350
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], eax
mov edi, ebx
mov eax, dword [esp + 4]
add eax, 0x1fffffff
test eax, 0x1fffffff
je 0x41b471
nop dword [eax + eax]
lea ebp, [edi - 8]
mov eax, dword [edi - 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi - 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp]
mov dword [esp + 0x1c], edi
add edi, eax
add edi, 0xfffffff8
mov dword [esp + 4], ebp
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
nop dword [eax]
mov ebx, ebp
mov ebp, edi
movsd xmm0, qword [edi]
movsd qword [ebx], xmm0
mov edi, esi
sub edi, ebp
sar edi, 3
mov ebx, ecx
sub ebx, edi
lea eax, [ebp + ecx*8]
lea edi, [edx + ebx*8]
cmovl edi, eax
cmp edi, dword [esp + 4]
jne 0x41b3d0
mov eax, dword [esp + 0x18]
mov dword [ebp], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 4], eax
mov edi, dword [esp + 0x1c]
lea ebx, [edi - 0x10]
mov eax, dword [edi - 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi - 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esp]
add edi, eax
add edi, 0xfffffff0
mov dword [esp + 4], ebx
mov eax, ebx
nop dword [eax + eax]
mov ebx, eax
mov eax, edi
movsd xmm0, qword [edi]
movsd qword [ebx], xmm0
mov edi, esi
sub edi, eax
sar edi, 3
mov ebx, ecx
sub ebx, edi
lea ebp, [eax + ecx*8]
lea edi, [edx + ebx*8]
cmovl edi, ebp
cmp edi, dword [esp + 4]
jne 0x41b430
mov esi, dword [esp + 0x18]
mov dword [eax], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 4], esi
mov eax, dword [esp + 4]
mov edi, eax
cmp eax, edx
jne 0x41b3a0
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x10]
mov dword [esp], eax
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
sub ebp, edi
sub ebx, eax
mov ecx, edi
mov edi, eax
mov dword [esp + 0x14], ecx
add eax, ecx
lea ecx, [ebx + ebp]
cmp eax, ecx
jge 0x41b500
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov dword [esp + 0xc], ebx
mov ebx, dword [esp]
mov dword [esp + 0x4c], ebx
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push edi
push dword [esp + 0x20]
push dword [esp + 0x8c]
push ebx
push eax
push esi
call fcn.0041af80
mov ecx, dword [esp + 0x28]
add esp, 0x20
lea eax, [esp + 0x70]
mov dword [eax], ebx
mov edi, dword [esp + 0xc]
jmp 0x41b541
mov esi, dword [esp]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push ebx
push ebp
push dword [esp + 0x8c]
push eax
push edx
push esi
call fcn.0041af80
add esp, 0x20
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x74]
mov dword [eax], ecx
mov dword [esp + 0xc], edi
test edi, edi
jne 0x41afab
jmp 0x41b5a7
lea eax, [esp + 0x70]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x88]
push esi
push ebp
push dword [esp + 0x88]
push edx
push eax
push ecx
call fcn.0041b5b0
add esp, 0x78
jmp 0x41b5aa
mov eax, dword [esp + 4]
mov dword [esi], eax
mov dword [esi + 4], edi
mov eax, dword [esp]
mov dword [eax + 4], ebp
mov dword [eax], ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret