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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, ecx
mov ebp, dword [esp + 0xe0]
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
je 0x41327f
mov ecx, edi
call fcn.0041a390
cmp eax, 3
jne 0x41327c
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + 0xc]
mov dword [ebp + 0xc], eax
call fcn.0041a380
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
call fcn.0041bdb4
movzx eax, byte [esp + 0x20]
lea ecx, [esp + 0x21]
test al, 1
mov dword [esp], ecx
mov edi, ebp
je 0x4132eb
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x4132ed
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x7c], str.identifier
mov word [esp + 0x8c], 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 + 0x2c], eax
mov edx, dword [esp + 4]
lea edi, [esp + 0x7c]
mov ecx, ebx
push eax
push edx
push edi
call fcn.0040f8e0
mov byte [esp + 0x34], 0xff
mov dword [esp + 0x2c], 0
or byte [esi + 0x54], 1
mov dword [esi], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x413629
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413629
shr eax, 1
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
sub esp, 8
movsd xmm0, qword [esp + 0x84]
movsd qword [esp], xmm0
mov ebp, dword [0x41e5a0]
mov ecx, ebp
call fcn.0041bd3c
mov ebx, eax
cmp eax, 0xffffffff
mov eax, dword [ebp + 4]
cmove ebx, eax
cmp ebx, eax
jne 0x413373
mov dword [esp + 0x7c], str.control_type__END_or_
mov word [esp + 0x8c], 0x103
mov ebp, edi
mov ebx, dword [edi + 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 + 0x54], eax
mov edx, dword [esp + 4]
lea ebx, [esp + 0x7c]
mov ecx, edi
push eax
push edx
push ebx
call fcn.0040f8e0
or byte [esi + 0x54], 1
mov dword [esi], edi
jmp 0x41360b
mov ebp, dword [ebp]
mov eax, dword [ebp + ebx*4]
cmp byte [eax + 0xa], 0
je 0x4133d1
lea ecx, [esp + 0x7c]
push edi
call fcn.00411bc0
test byte [esp + 0x88], 1
jne 0x413601
lea ecx, [esp + 4]
push 8
push edi
call fcn.00411970
mov eax, dword [esp + 4]
test eax, eax
jne 0x413605
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x84]
mov dword [esp + 0x48], eax
jmp 0x4133e9
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x7c]
push edi
call fcn.00411640
test byte [esp + 0x88], 1
jne 0x413601
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x7c]
push 8
push edi
call fcn.00411970
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x413605
movzx eax, byte [esp + 0x20]
test al, 1
je 0x413430
mov ecx, dword [esp + 0x24]
jmp 0x413434
mov ecx, eax
shr ecx, 1
cmp ecx, 7
jne 0x41345e
test al, 1
je 0x413444
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, 0x544e4f43
mov edx, dword [esp]
xor eax, dword [edx]
mov ecx, 0x4c4f5254
xor ecx, dword [edx + 3]
or ecx, eax
je 0x413572
mov eax, dword [ebp + ebx*4]
movzx ebx, word [eax + 8]
mov dword [esp], 0
mov al, 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x7c]
push 4
push 4
push edi
call fcn.00411cb0
test byte [esp + 0xc8], 1
jne 0x413561
push 0x41e8c3
lea eax, [esp + 0x24]
push eax
call fcn.00413ff0
add esp, 8
mov ecx, dword [edi + 0xc]
test al, al
je 0x41350a
cmp ecx, dword [edi + 0x10]
je 0x41350a
call fcn.0041a390
mov ecx, dword [edi + 0xc]
cmp eax, 8
jne 0x41350a
add ecx, 0xc
mov dword [edi + 0xc], ecx
lea ecx, [esp + 4]
push edi
call fcn.00411640
test byte [esp + 0x10], 1
jne 0x413691
movzx eax, byte [esp + 4]
mov dword [esp], eax
movsd xmm0, qword [esp + 5]
movsd qword [esp + 0x54], xmm0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5b], eax
mov ecx, dword [edi + 0xc]
mov al, 1
mov dword [esp + 0x1c], eax
xor ebp, ebp
cmp ecx, dword [edi + 0x10]
je 0x413638
call fcn.0041a390
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp eax, 8
jne 0x41363a
add ecx, 0xc
mov dword [edi + 0xc], ecx
lea ecx, [esp + 4]
push edi
call fcn.00411600
test byte [esp + 0xc], 1
jne 0x413691
mov eax, dword [esp + 4]
movzx ecx, al
mov dword [esp + 0x18], ecx
and eax, 0xffffff00
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0xc]
mov dl, 1
jmp 0x41364a
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], 0
jmp 0x413695
lea ecx, [esp + 4]
push edi
call fcn.00411a90
test byte [esp + 0xc], 1
jne 0x4137cb
lea ecx, [esp + 0x7c]
push 8
push edi
call fcn.00411970
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x413605
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x7c]
push edi
call fcn.00411640
test byte [esp + 0x88], 1
jne 0x413601
lea ecx, [esp + 0x78]
push 8
push edi
call fcn.00411970
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x413605
movzx eax, byte [esp + 0x7c]
mov dword [esp], eax
movsd xmm0, qword [esp + 0x7d]
movsd qword [esp + 0x54], xmm0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x5b], eax
mov al, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 0
jmp 0x413483
mov eax, dword [esp + 0x7c]
or byte [esi + 0x54], 1
mov dword [esi], eax
test byte [esp + 0x20], 1
je 0x41361e
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x34], 1
jne 0x4132cd
mov eax, esi
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor edx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x70], edx
cmp ecx, dword [edi + 0x10]
je 0x4136a0
call fcn.0041a390
xor ebp, ebp
mov ecx, 0
mov edx, 0
cmp eax, 8
jne 0x4136a4
add dword [edi + 0xc], 0xc
lea ecx, [esp + 4]
push edi
call fcn.00411600
test byte [esp + 0xc], 1
jne 0x413691
mov eax, dword [esp + 4]
movzx ebp, al
mov ecx, eax
and ecx, 0xffffff00
mov dl, 1
jmp 0x4136a4
mov eax, dword [esp + 4]
or byte [esi + 0x54], 1
mov dword [esi], eax
jmp 0x413786
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
movzx eax, byte [esp + 6]
mov byte [esi + 0x13], al
movzx eax, word [esp + 4]
mov word [esi + 0x11], ax
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], ebx
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esp + 0x5b]
mov dword [esi + 0x30], edi
movsd xmm0, qword [esp + 0x54]
movsd qword [esi + 0x29], xmm0
movzx eax, byte [esp + 0x50]
mov byte [esi + 0x37], al
movzx eax, word [esp + 0x4e]
mov word [esi + 0x35], ax
movzx eax, byte [esp + 0x53]
mov byte [esi + 0x53], al
movzx eax, word [esp + 0x51]
mov word [esi + 0x51], ax
and byte [esi + 0x54], 0xfe
movsd xmm0, qword [esp + 0x2c]
movsd qword [esi], xmm0
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x48]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x74]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov eax, dword [esp]
mov byte [esi + 0x28], al
mov eax, dword [esp + 0x1c]
mov byte [esi + 0x34], al
or ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x14]
or edx, dword [esp + 0x18]
movzx eax, byte [esp + 0x70]
movzx ecx, byte [esp + 0x64]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], edx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], ebp
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x38]
mov byte [esi + 0x50], al
mov ecx, dword [esp + 0x7c]
test byte [esp + 0xc8], 1
jne 0x4137b1
lea eax, [esp + 0x88]
cmp ecx, eax
je 0x41360b
push ecx
call sub.msvcrt.dll_free
add esp, 4
jmp 0x41360b
mov dword [esp + 0x7c], 0
test ecx, ecx
je 0x41360b
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41360b
mov eax, dword [esp + 4]
jmp 0x413605