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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, ecx
mov ebp, dword [esp + 0xd4]
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
je 0x4132aa
mov ecx, edi
call fcn.0041b140
cmp eax, 3
jne 0x4132a7
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + 0xc]
mov dword [ebp + 0xc], eax
call fcn.0041b130
mov byte [esp + 0x30], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
call fcn.0041cb90
movzx eax, byte [esp + 0x34]
lea edi, [esp + 0x35]
test al, 1
je 0x413316
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
jmp 0x41331a
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x70], str.identifier
mov word [esp + 0x80], 0x103
push 0x18
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 4]
lea edi, [esp + 0x70]
mov ecx, ebx
push eax
push edx
push edi
call fcn.0040f480
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x28], 0
or byte [esi + 0x54], 1
mov dword [esi], ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x413643
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413643
shr eax, 1
mov ecx, edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
sub esp, 8
movsd xmm0, qword [esp + 0x78]
movsd qword [esp], xmm0
mov ebx, dword [0x41f764]
mov ecx, ebx
call fcn.0041cb18
cmp eax, 0xffffffff
mov ecx, dword [ebx + 4]
cmove eax, ecx
cmp eax, ecx
jne 0x4133a1
mov dword [esp + 0x70], str.control_type__END_or_
mov word [esp + 0x80], 0x103
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff4
push 0x18
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 4]
lea ebx, [esp + 0x70]
mov ecx, edi
push eax
push edx
push ebx
call fcn.0040f480
or byte [esi + 0x54], 1
mov dword [esi], edi
test byte [esp + 0x34], 1
jne 0x41362c
jmp 0x413638
mov ebx, dword [ebx]
mov ecx, dword [ebx + eax*4]
cmp byte [ecx + 0xa], 0
mov dword [esp], eax
je 0x4133f7
lea ecx, [esp + 0x70]
push ebp
call fcn.00411c10
test byte [esp + 0x7c], 1
jne 0x41361b
lea ecx, [esp + 4]
push 8
push ebp
call fcn.00411730
mov eax, dword [esp + 4]
test eax, eax
jne 0x41361f
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
movzx eax, byte [esp + 0x78]
mov dword [esp + 0x4c], eax
jmp 0x41340f
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x70]
push ebp
call fcn.00411420
test byte [esp + 0x7c], 1
jne 0x41361b
mov eax, dword [esp + 0x70]
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x70]
push 8
push ebp
call fcn.00411730
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x41361f
movzx ecx, byte [esp + 0x34]
test cl, 1
je 0x413454
mov edx, dword [esp + 0x38]
jmp 0x413458
mov edx, ecx
shr edx, 1
mov eax, dword [esp]
cmp edx, 7
jne 0x413480
test cl, 1
je 0x413469
mov edi, dword [esp + 0x3c]
mov ecx, 0x544e4f43
xor ecx, dword [edi]
mov edx, 0x4c4f5254
xor edx, dword [edi + 3]
or edx, ecx
je 0x413596
mov eax, dword [ebx + eax*4]
movzx edi, word [eax + 8]
mov dword [esp], 0
mov al, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], 0
xor ebx, ebx
lea ecx, [esp + 0x70]
push 4
push 4
push ebp
call fcn.00411d00
test byte [esp + 0xbc], 1
jne 0x413585
push 0x41fac3
lea eax, [esp + 0x38]
push eax
call fcn.00413fa0
add esp, 8
mov ecx, dword [ebp + 0xc]
test al, al
je 0x413525
cmp ecx, dword [ebp + 0x10]
je 0x413525
call fcn.0041b140
mov ecx, dword [ebp + 0xc]
cmp eax, 8
jne 0x413525
add ecx, 0xc
mov dword [ebp + 0xc], ecx
lea ecx, [esp + 4]
push ebp
call fcn.00411420
test byte [esp + 0x10], 1
jne 0x4136ce
movzx eax, byte [esp + 4]
mov dword [esp], eax
movsd xmm0, qword [esp + 5]
movsd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x57], eax
mov ecx, dword [ebp + 0xc]
mov al, 1
mov dword [esp + 0x24], eax
xor edx, edx
cmp ecx, dword [ebp + 0x10]
je 0x413652
call fcn.0041b140
mov ecx, dword [ebp + 0xc]
cmp eax, 8
jne 0x41366c
add ecx, 0xc
mov dword [ebp + 0xc], ecx
lea ecx, [esp + 4]
push ebp
call fcn.004113e0
test byte [esp + 0xc], 1
jne 0x4136ce
mov eax, ebx
mov ebx, dword [esp + 4]
movzx ecx, bl
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov ebx, eax
and ecx, 0xffffff00
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov al, 1
mov dword [esp + 0x1c], eax
jmp 0x413684
mov eax, dword [esp + 0x70]
mov dword [esp + 0x70], 0
jmp 0x4136d2
lea ecx, [esp + 4]
push ebp
call fcn.00411850
test byte [esp + 0xc], 1
jne 0x4137aa
lea ecx, [esp + 0x70]
push 8
push ebp
call fcn.00411730
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x41361f
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
lea ecx, [esp + 0x70]
push ebp
call fcn.00411420
test byte [esp + 0x7c], 1
jne 0x41361b
lea ecx, [esp + 0x6c]
push 8
push ebp
call fcn.00411730
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x41361f
movzx eax, byte [esp + 0x70]
mov dword [esp], eax
movsd xmm0, qword [esp + 0x71]
movsd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x57], eax
mov al, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], 0
jmp 0x41349e
mov eax, dword [esp + 0x70]
or byte [esi + 0x54], 1
mov dword [esi], eax
test byte [esp + 0x34], 1
je 0x413638
push dword [esp + 0x3c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x30], 1
jne 0x4132f8
mov eax, esi
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jmp 0x413686
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
xor edx, edx
cmp ecx, dword [ebp + 0x10]
je 0x4136dd
call fcn.0041b140
xor edx, edx
mov ecx, 0
mov dword [esp + 0x20], 0
cmp eax, 8
jne 0x4136e7
add dword [ebp + 0xc], 0xc
lea ecx, [esp + 4]
push ebp
call fcn.004113e0
test byte [esp + 0xc], 1
jne 0x4136ce
mov ecx, dword [esp + 4]
movzx edx, cl
and ecx, 0xffffff00
mov al, 1
mov dword [esp + 0x20], eax
jmp 0x4136e7
mov eax, dword [esp + 4]
or byte [esi + 0x54], 1
mov dword [esi], eax
jmp 0x413791
xor ecx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x60], ebx
mov ebx, dword [edi]
mov ebp, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edi, dword [edi + 0x18]
mov eax, dword [esp + 0x57]
mov dword [esi + 0x30], eax
movsd xmm0, qword [esp + 0x50]
movsd qword [esi + 0x29], xmm0
and byte [esi + 0x54], 0xfe
mov eax, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x4c]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x68]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edi
mov eax, dword [esp]
mov byte [esi + 0x28], al
mov eax, dword [esp + 0x24]
mov byte [esi + 0x34], al
or edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
or edi, dword [esp + 0x18]
movzx eax, byte [esp + 0x1c]
movzx ecx, byte [esp + 0x20]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ecx
mov eax, dword [esp + 0x60]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x40]
mov byte [esi + 0x50], al
lea ecx, [esp + 0x70]
call fcn.00413950
test byte [esp + 0x34], 1
jne 0x41362c
jmp 0x413638
mov eax, dword [esp + 4]
jmp 0x41361f