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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74c
push ebx
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x2e0]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x70], eax
mov ecx, 0x4b
mov dword [esp + 0x74], eax
lea edi, [esp + 0x370]
mov dword [esp + 0x78], eax
push 0x46cf58
mov byte [esp + 0x80], al
mov dword [esp + 0x24], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, 0xa
mov esi, eax
lea edi, [esp + 0x374]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa
mov esi, eax
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x19
lea edi, [esp + 0x280]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x310]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x374]
mov dword [esp + 0x64], 0
push ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x64], 0
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x415073
lea edx, [esp + 0x370]
push 0x46cf58
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
je 0x415073
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x27c]
mov byte [edx], 0
rep stosd dword es:[edi], eax
lea edi, [esp + 0x370]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x27c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x46cf58
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4b
lea edi, [esp + 0x4a0]
rep stosd dword es:[edi], eax
lea esi, [edx + 2]
mov ecx, 0xa
lea edi, [esp + 0x4a0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4a0]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
je 0x414a8e
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x218]
mov byte [edx], 0
rep stosd dword es:[edi], eax
lea edi, [edx + 2]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x218]
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x49c]
or ecx, 0xffffffff
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
test cx, cx
jle 0x414bf2
movsx edi, si
mov ecx, 0x46cf54
mov ax, word [esp + edi + 0x49c]
cmp ax, word [ecx]
je 0x414bc9
mov ecx, 0x46cf08
cmp al, byte [ecx]
je 0x414bc9
mov cl, byte [esp + edi + 0x49d]
movsx eax, dx
sub cl, 0x1f
mov byte [esp + eax + 0x88], cl
jmp 0x414bd4
movsx ecx, dx
mov byte [esp + ecx + 0x88], 0x20
lea edi, [esp + 0x49c]
or ecx, 0xffffffff
xor eax, eax
inc edx
add esi, 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp si, cx
jl 0x414b95
mov dword [esp + 0x10], edx
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x5c8]
xor esi, esi
test dx, dx
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], eax
jle 0x414f9b
movsx ecx, ax
lea ebx, [esp + ecx + 0x88]
mov cl, byte [esp + ecx + 0x88]
cmp cl, 0x20
jne 0x414c3d
mov bl, byte [0x46cf08]
movsx ecx, si
inc esi
mov byte [esp + ecx*4 + 0x5c8], bl
jmp 0x414d30
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0xec]
mov edx, ebx
rep stosd dword es:[edi], eax
mov ax, word [edx]
cmp al, 0x4a
mov word [esp + 0xec], ax
mov cl, byte [edx + 2]
mov byte [esp + 0xee], cl
jne 0x414cc0
movsx dx, byte [esp + 0xed]
mov edi, dword [sym.imp.MSVCRT.dll_iswalpha]
push edx
call edi
add esp, 4
test eax, eax
jne 0x414cc0
movsx ax, byte [esp + 0xee]
push eax
call edi
add esp, 4
test eax, eax
jne 0x414cc0
mov ax, word [esp + 0xec]
movsx ecx, si
lea edx, [esp + ecx*4 + 0x5c8]
mov cl, byte [esp + 0xee]
mov word [edx], ax
mov eax, dword [esp + 0x50]
add eax, 2
mov byte [edx + 2], cl
mov dword [esp + 0x50], eax
jmp 0x414d27
movsx dx, byte [ebx]
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0xec]
sub edx, 0x41
rep stosd dword es:[edi], eax
movsx eax, dx
inc eax
lea ecx, [esp + 0xec]
push eax
push str._02d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
movsx eax, si
mov cx, word [0x46cc14]
add esp, 0xc
shl eax, 2
lea edx, [esp + eax + 0x5c8]
mov word [esp + eax + 0x5c8], cx
mov cl, byte [0x46cc16]
mov byte [edx + 2], cl
mov dx, word [esp + 0xec]
mov word [esp + eax + 0x5c9], dx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
inc esi
inc eax
cmp ax, dx
mov dword [esp + 0x50], eax
jl 0x414c11
test si, si
jle 0x414f98
movsx eax, si
lea ebx, [esp + 0x5c8]
mov dword [esp + 0x10], eax
cmp byte [ebx], 0x20
jne 0x414d90
mov edi, 0x46cf08
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x414f86
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, ebx
mov cx, word [eax]
mov word [esp + 0x88], cx
lea ecx, [esp + 0x5a]
mov dl, byte [eax + 2]
lea eax, [esp + 0x5c]
mov byte [esp + 0x8a], dl
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
call fcn.0040f970
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
lea edx, [esp + 0x74]
mov byte [esp + 0x3c], al
mov word [esp + 0x28], cx
lea eax, [esp + 0x6c]
push edx
fstp qword [esp + 0x60]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x98]
push edx
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x300]
push ecx
lea eax, [esp + 0xac]
push edx
push eax
call fcn.0043e2f0
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
call fcn.00461d80
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00461d80
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x84], ecx
add esp, 0x3c
mov dword [esp + 0x38], eax
mov word [esp + 0x4c], cx
mov ecx, 5
lea edi, [esp + 0x70]
lea esi, [esp + 0x24]
xor edx, edx
mov dword [esp + 0x3c], eax
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x40], al
jne 0x414ed8
movsx eax, word [0x6a6908]
imul eax, eax, 0x4af8
add eax, 0x6ae335
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov cx, word [esp + 0x88]
mov edx, dword [eax + 4]
mov word [esp + 0x44], cx
mov dword [esp + 0x38], edx
mov dl, byte [esp + 0x8a]
mov eax, dword [eax + 8]
mov byte [esp + 0x46], dl
mov dword [esp + 0x3c], eax
jmp 0x414f02
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov ax, word [esp + 0x14]
mov dword [esp + 0x38], ecx
mov cl, byte [esp + 0x16]
mov dword [esp + 0x3c], edx
mov word [esp + 0x44], ax
mov byte [esp + 0x46], cl
fld qword [esp + 0x50]
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0xec]
lea edx, [esp + 0xec]
rep stosd dword es:[edi], eax
push edx
call sub.MSVCRT.dll__ftol
push eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 1
call fcn.0043e870
add esp, 0x14
test ax, ax
jl 0x414f86
lea edx, [esp + 0xec]
push 0x28
push edx
call fcn.0044aaf0
lea edi, [esp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x414d55
mov ebx, dword [ebp + 0x14]
or ecx, 0xffffffff
lea edi, [esp + 0x27c]
xor eax, eax
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x30c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x370]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4b
lea edi, [esp + 0x370]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x30c]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa0
jb 0x414a8e
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x27c]
mov esi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov ecx, 0x4b
lea edi, [esp + 0x370]
rep stosd dword es:[edi], eax
mov ecx, 0x14
lea edi, [esp + 0x370]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x370]
push 0x46cf50
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x41558c
lea edx, [esp + 0x370]
push 0x46cf50
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
je 0x41558c
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x27c]
mov byte [edx], 0
rep stosd dword es:[edi], eax
lea edi, [esp + 0x370]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x27c]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ax, word [edx + 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x46cf50
cmp ax, word [ecx]
je 0x415147
lea eax, [edx + 8]
mov ax, word [edx + 8]
cmp ax, word [ecx]
jne 0x41558c
mov ax, word [edx + 4]
mov ecx, 0x46cf50
lea edi, [esp + 0x218]
lea esi, [esp + 0x218]
sub ax, word [ecx]
mov cx, word [0x46cf4c]
mov word [edx], cx
mov ecx, 0x19
neg ax
sbb eax, eax
mov dword [esp + 0x10], esi
and eax, 4
add eax, 2
movsx ebx, ax
mov ax, word [0x46cf4c]
mov word [ebx + edx + 2], ax
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebx + edx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4b
lea edi, [esp + 0x49c]
rep stosd dword es:[edi], eax
mov ecx, ebx
lea esi, [edx + 2]
mov edx, ecx
lea edi, [esp + 0x49c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x49c]
or ecx, 0xffffffff
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
test cx, cx
jle 0x415233
movsx eax, dx
lea edi, [esp + 0x49c]
add edx, 2
mov cl, byte [esp + eax + 0x49d]
movsx eax, si
sub cl, 0x1f
inc esi
mov byte [esp + eax + 0x88], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp dx, cx
jl 0x415202
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jne 0x4152ba
mov ecx, 0x4b
lea edi, [esp + 0xec]
rep stosd dword es:[edi], eax
movsx cx, byte [esp + 0x88]
sub ecx, 0x41
lea eax, [esp + 0xec]
movsx edx, cx
inc edx
push edx
push str._02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov dl, byte [0x46cc16]
add esp, 0xc
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov cx, word [0x46cc14]
mov ax, word [esp + 0xec]
mov word [esp + 0x88], cx
mov byte [esp + 0x8a], dl
mov word [esp + 0x89], ax
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x5a]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
call fcn.0040f970
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x74]
mov byte [esp + 0x3c], cl
mov word [esp + 0x28], dx
lea ecx, [esp + 0x6c]
push eax
fstp qword [esp + 0x60]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x98]
push eax
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x300]
push edx
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.0043e2f0
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00461d80
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x48]
push ecx
push eax
call fcn.00461d80
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x70], ecx
add esp, 0x3c
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0x70]
mov byte [esp + 0x40], cl
mov ecx, 5
lea esi, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x48], edx
repe cmpsb byte [esi], byte es:[edi]
mov word [esp + 0x4c], dx
jne 0x4153d5
movsx ecx, word [0x6a6908]
imul ecx, ecx, 0x4af8
add ecx, 0x6ae335
mov edx, dword [ecx]
mov dword [esp + 0x34], edx
mov dx, word [esp + 0x88]
mov eax, dword [ecx + 4]
mov word [esp + 0x44], dx
mov dword [esp + 0x38], eax
mov al, byte [esp + 0x8a]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x3c], ecx
jmp 0x415471
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x38], edx
cmp ecx, 1
jne 0x415463
mov ecx, 0x4b
lea edi, [esp + 0xec]
rep stosd dword es:[edi], eax
movsx cx, byte [esp + 0x14]
sub ecx, 0x41
lea eax, [esp + 0xec]
movsx edx, cx
inc edx
push edx
push str._02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov dx, word [0x46cc14]
mov al, byte [0x46cc16]
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov word [esp + 0x14], dx
mov dword [esp + 0x18], ecx
mov byte [esp + 0x16], al
mov word [esp + 0x1c], cx
mov cx, word [esp + 0xec]
mov word [esp + 0x15], cx
mov dx, word [esp + 0x14]
mov al, byte [esp + 0x16]
mov word [esp + 0x44], dx
fld qword [esp + 0x50]
mov byte [esp + 0x46], al
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0xec]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xec]
push ecx
call sub.MSVCRT.dll__ftol
push eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x3c]
push edx
push eax
push 1
call fcn.0043e870
lea ecx, [esp + 0x100]
push 0x28
push ecx
call fcn.0044aaf0
or ecx, 0xffffffff
lea edi, [esp + 0x298]
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x20], 0
not ecx
sub edi, ecx
mov dword [edx], 0
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x370]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4b
lea edi, [esp + 0x370]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x50
jb 0x4150cd
movsx eax, word [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret