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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, ecx
movzx ecx, word [ebp + 0xc]
cmp byte [ebp + 0x24], 0
mov eax, dword [ebp + 8]
je 0x4146c9
movzx edx, cx
mov ecx, esi
push 1
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
push eax
call fcn.004149f0
jmp 0x4149d3
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [eax], 1
je 0x4146eb
mov eax, dword [eax + 8]
jmp 0x4146ec
inc eax
movzx ecx, cx
lea edx, [esp + 0x10]
push ecx
push eax
push str._s__d
push edx
call fcn.004ba8a0
add esp, 0x10
movzx ebx, byte [esp + 0x10]
test bl, 1
je 0x41498c
mov ebx, dword [esp + 0x14]
cmp ebx, 0x401
jae 0x41499a
mov eax, dword [ebp + 0x20]
lea edi, [eax + ebx]
add edi, 0x18
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
js 0x4149dd
push edi
call fcn.0051c3d0
add esp, 4
mov dword [esp + 4], eax
mov dword [esp], eax
mov dword [esp + 0x3c], ebx
mov ecx, dword [ebp + 0x20]
add ecx, ebx
add ecx, 0x17
mov edx, edi
and edx, 3
je 0x414783
xor ebx, ebx
nop dword [eax]
mov byte [eax], 0
mov eax, dword [esp + 4]
inc eax
mov dword [esp + 4], eax
inc ebx
cmp edx, ebx
jne 0x414770
sub edi, ebx
mov dword [esp + 0x40], esi
cmp ecx, 3
jb 0x4147ce
nop dword [eax]
mov byte [eax], 0
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
mov dword [esp + 4], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
mov dword [esp + 4], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
mov dword [esp + 4], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 4]
inc eax
mov dword [esp + 4], eax
add edi, 0xfffffffc
jne 0x414790
mov edi, dword [esp]
mov dword [edi], 0x444e4553
movzx eax, byte [esp + 0x10]
mov ebx, eax
shr ebx, 1
test al, 1
mov eax, dword [esp + 0x14]
cmove eax, ebx
mov dword [edi + 4], eax
lea eax, [esp + 0x11]
cmovne eax, dword [esp + 0x18]
lea ecx, [edi + 8]
cmovne ebx, dword [esp + 0x14]
push ebx
push eax
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea esi, [edi + ebx]
add esi, 8
mov dword [edi + ebx + 8], 0x41544144
mov ecx, dword [ebp + 0x20]
mov dword [edi + ebx + 0xc], ecx
lea eax, [edi + ebx + 0x10]
mov edi, ecx
push ecx
push dword [ebp + 0x1c]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [edi + esi]
add eax, 8
mov dword [edi + esi + 8], 0x454e4f44
mov ecx, dword [ebp + 0x18]
mov dword [edi + esi + 0xc], ecx
mov edx, dword [esp]
sub eax, edx
add eax, 8
mov esi, dword [esp + 0x40]
mov ecx, esi
push eax
push edx
mov ebx, dword [ebp + 0x14]
push ebx
mov edi, dword [ebp + 0x10]
push edi
call fcn.00415220
lea ecx, [esp + 0x20]
push edi
call fcn.0051f860
lea ecx, [esp + 0x30]
push ebx
call fcn.0051f860
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, eax
sub ecx, edi
sar ecx, 2
imul ecx, ecx, 0xaa
dec ecx
xor edx, edx
cmp eax, edi
cmovne edx, ecx
add dword [esi + 0x80], 1
adc dword [esi + 0x84], 0
add dword [esi + 0x40], 1
adc dword [esi + 0x44], 0
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x18]
cmp edx, ecx
jne 0x4148c2
lea ecx, [esi + 8]
call fcn.004154d0
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x18]
mov edx, 0xc0c0c0c1
mov eax, ecx
mul edx
shr edx, 7
mov eax, dword [edi + edx*4]
imul edx, edx, 0xaa
sub ecx, edx
lea ecx, [ecx + ecx*2]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*8 + 8], edx
movsd xmm0, qword [esp + 0x20]
movsd qword [eax + ecx*8], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*8 + 0x14], edx
movsd xmm0, qword [esp + 0x30]
movsd qword [eax + ecx*8 + 0xc], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
inc dword [esi + 0x1c]
test byte [esp + 0x20], 1
je 0x414949
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [ebp + 0x20]
add dword [esi + 0x90], eax
adc dword [esi + 0x94], 0
add dword [esi + 0x50], eax
adc dword [esi + 0x54], 0
lea ecx, [esi + 0x78]
add esi, 0xb8
push 0
push eax
push 0
push eax
push ebx
push esi
call fcn.00415f80
mov eax, dword [esp]
test eax, eax
je 0x414986
push eax
call fcn.0051c570
add esp, 4
mov ebx, dword [esp + 0x3c]
jmp 0x4149b5
shr ebx, 1
cmp ebx, 0x401
jb 0x414721
push ebx
push str.SendSmallFile_failed:_path_too_long:__zu
push esi
call fcn.00413060
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x26
cmp ebx, 0x401
setb bl
test byte [esp + 0x10], 1
je 0x4149d1
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20
mov ecx, esp
call fcn.005256b0
int3